Sandbox: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | <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> | |||
Revision as of 15:39, 10 July 2011
<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>