/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<head> <SCRIPT language="JavaScript"> function GotoWebsite() { var webadderrss = prompt("Where would you like to goto?", "http://www."); if (webadderrss) { this.location.href = webadderrss; }} </SCRIPT> </head> <body> <A HREF="javascript:{;}" onClick="GotoWebsite(); return false">Goto what site?</A> </body>