Anwendungsbeispiel: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
<addhtml><html> | <addhtml><html> | ||
< | <head> | ||
</html></ | <script type="text/javascript"> | ||
function disp_prompt() | |||
{ | |||
var name=prompt("Please enter your name","t3h h4x0r") | |||
if (name!=null && name!="") | |||
{ | |||
document.write("Hello " + name + "! How are you today?") | |||
} | |||
} | |||
</script> | |||
</head> | |||
<body> | |||
<input type="button" onclick="disp_prompt()" value="CLICK!" /> | |||
</body> | |||
</html></addhtml> | |||
Version vom 17. Juli 2012, 11:13 Uhr
<addhtml><html> <head> <script type="text/javascript"> function disp_prompt()
{
var name=prompt("Please enter your name","t3h h4x0r")
if (name!=null && name!="")
{
document.write("Hello " + name + "! How are you today?")
}
}
</script> </head> <body> <input type="button" onclick="disp_prompt()" value="CLICK!" />
</body> </html></addhtml>