Go To Site Window


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <head>
  2. <SCRIPT language="JavaScript">
  3. function GotoWebsite() {
  4. var webadderrss = prompt("Where would you like to goto?", "http://www.");
  5. if (webadderrss) { this.location.href = webadderrss; }}
  6. </SCRIPT>
  7. </head>
  8. <body>
  9. <A HREF="javascript:{;}" onClick="GotoWebsite(); return false">Goto what site?</A>
  10. </body>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.