/ Published in: HTML
Expand |
Embed | Plain Text
<html> <head> <!-- Evtl. weitere Kopfinformationen --> <script type="text/javascript"> function doSomething(){ alert(document.getElementById("foo").value); alert($("#foo").val()); } </script> </head> <body onload="doSomething()"> Inhalt der Webseite <input type="text" id="foo" /> <input type="button" name="Text 1" value="Text 1 anzeigen" onclick="doSomething()"> </body> </html>
You need to login to post a comment.
