| CODE |
<html> <head> <title> Test!! </title> </head> <body> <script language=javascript> var a=prompt("Whatever you put here should be pasted on the page","") if (a=="") { alert("whatever") } else { document.write(a) alert(a) b=0 var c=confirm("Are you happy with this?") if (c==false) { window.location=window.location } else { b=1 } } </script> </body> </html> |