Hallo alle zusammen,
ich habe nun den Befehl mit dem das geht was ich meine:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html><head><title>visibility</title>
<script type="text/javascript">
function onoff () {
if (document.getElementById)
document.getElementById("Ueberschrift").style.visibility = "visible";
document.getElementById("Zeile").style.visibility = "collapse";
}
</script>
<script language="JavaScript" type="text/javascript">
<!--
function kopieren(inhalt)
{
zwischenspeicher.innerText = inhalt.innerText;
ablage = zwischenspeicher.createTextRange();
ablage.execCommand("Copy");
}
function einfuegen(inhalt)
{
inhalt.select();
ablage=inhalt.createTextRange();
ablage.execCommand('Paste');
}
//-->
</script>
</head><body>
<span id="kopiertext3" id="Ueberschrift" style="visibility:hidden"><a href="http://www.google.de/">www.sap.com</a>
</span><br>
<input type="button" id="kop3" value="Copy Path" onclick="kopieren(kopiertext3);"><br>
<textarea id="zwischenspeicher" style="display:none;"></textarea><br>
</body></html>