Posted By

SDPope on 06/04/10


Tagged

javascriptwindowgotosite


Versions (?)

Go To Site Window


 / Published in: JavaScript
 

  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  

You need to login to post a comment.