도메인에서 특정 URL 웹페이로 연결할때 쓰는 자바 스트립트
<script language="JavaScript">
self.location="http://jisunlee.net/wp/";
</script>
출처 : http://ntt.cc/2008/01/21/5-ways-to-redirect-url-with-javascript.html
1,
1 | <script language=”javascript” type=”text/javascript”> |
2 | window.location.href=”login.jsp?backurl=”+window.location.href; |
2,
1 | <script language=”javascript”> |
3 | window.history.back(-1); |
3,
1 | <script language=”javascript”> |
2 | window.navigate(”top.jsp”); |
4,
1 | <script language=”JavaScript”> |
2 | self.location=”top.htm”; |
5,
1 | <script language=”javascript”> |
2 | alert(”Access Violation”); |
3 | top.location=”error.jsp”; |