Advertisement
Guest User

Java redirection

a guest
Jul 18th, 2011
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. <html>
  2. <script>
  3.     location = "http://www.google/index.php";
  4. </script>
  5. </html>
  6. ---------------------------------------------------------------------------------------------
  7.  
  8. <html>
  9. <script>
  10.     alert("This page has been moved to a new location... click OK to be redirected.");
  11.     location = "http://google/index.php";
  12. </script>
  13. </html>
  14. ---------------------------------------------------------------------------------------------
  15.  
  16.  
  17. <html>
  18. <script>
  19.     if(confirm("This page has been moved to a new location... would you like to be redirected"))
  20.     {
  21.         location = "http://www.google/index.php";
  22.     }
  23.     else
  24.     {
  25.         history.back();
  26.     }
  27. </script>
  28. </html>
  29. ----------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement