5 cách chuyển hướng website dùng Javascript


Cách 1:

<script language=”javascript” type=”text/javascript”>
window.location.href=”login.jsp?backurl=”+window.location.href;
</script>

Cách 2:

<script type=”text/javascript”>
alert(”back”);
window.history.back(-1);
</script>

Cách 3:

<script type=”text/javascript”>
alert(”Access Violation”);
top.location=”error.jsp”;
</script>

Cách 4:

<script type=”text/javascript”>
self.location=”top.htm”;
</script>

Cách 5:

<script type=”text/javascript”>
window.navigate(”top.jsp”);
</script>

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

, , , , ,

  1. No comments yet.
(will not be published)

Bộ gõ AVIM-Reloaded


Get Adobe Flash playerPlugin by wpburn.com wordpress themes
Follow me