Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.29 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to navigate to a different page with JavaScript
  2. Response.Redirect("somepage.aspx");
  3.        
  4. <script language="JavaScript">
  5. <!--
  6. function move() {
  7. window.location = 'http://www.yourdomain.com'
  8. }
  9. //-->
  10. </script>
  11.        
  12. function goURL() {
  13.   location.href="http://example.com"  // change url to your's
  14. }