1. JavaScript는 이전 페이지 history.go.go (-1)로 돌아와서 두 페이지를 반환합니다. history.go (-2);
2. history.back ().
3. window.history.forward ()는 다음 페이지로 돌아갑니다
4. window.history.go (페이지로 돌아가서 방문한 URL도 사용할 수도 있습니다).
예:
<a href = javaScript : history.go (-1);> 이전 페이지 </a>
response.write (<script language = javaScript>)
response.write (if (! 확인 ( '작업 완료?')) {history.back ();})
response.write (</script>)
response.write (<script language = javaScript> history.go (-1); </script>)
<a href = javaScript : history.go (-1);> 이전 페이지 </a>
페이지 점프 : onclick = window.location.href = 'list.aspx'
추신
팁 (js quotes js) :
<스크립트 유형 = 텍스트/JavaScript>
<!-
if (typeof swfobject == undefined) {
document.write ( '<scr' + 'ipt type = text/javascript src =/scripts/swfobject-1.5.js> </scr' + 'ipt>');}
//->
</스크립트>
JavaScript의 페이지를 새로 고치는 몇 가지 방법 :
1 history.go (0)
2 location.reload ()
3 위치 = 위치
4 location.assign (위치)
5 document.execcommand ( '새로 고침')
6 Window.Navigate (위치)
7 location.replace (위치)
8 document.url = location.href
페이지를 자동으로 새로 고침하는 방법 :
1. 자동 페이지 새로 고침 : <head> 영역에 다음 코드를 추가합니다.
<meta http-equiv = 새로 고침 컨텐츠 = 20>
그 중 20 개는 20 초마다 페이지를 새로 고치는 것을 나타냅니다.
2. 자동 페이지 점프 : <head> 영역에 다음 코드를 추가합니다.
<meta http-equiv = Refresh Content = 20; url = http : //www.javaeye.com>
그 중 20 초 후에 20 개의 손가락이 http://www.javaeye.com 페이지로 점프합니다.
3. 자동 페이지 새로 고침
<스크립트 언어 = javaScript>
MyRefresh () 기능
{
Window.location.reload ();
}
settimeout ( 'myrefresh ()', 1000); // 1 초 안에 새로 고침을 지정하십시오
</스크립트>
상쾌한 부모 창 스크립트 문을 출력하는 방법
1. this.response.write (<cript> opener.location.reload (); </script>);
2. this.response.write (<cript> opener.window.location.href = opener.window.location.href; </script>);
3. response.write (<script language = javascript> opener.window.navigate ( ''page.asp ''); </script>)
JS 새로 고침 프레임 워크 스크립트 문
// 프레임이 포함 된 페이지를 새로 고치는 방법
<스크립트 언어 = javaScript>
parent.location.reload ();
</스크립트>
// Child Window는 부모 창을 새로 고칩니다
<스크립트 언어 = javaScript>
self.opener.location.reload ();
</스크립트>
(또는 <a href = javaScript : opener.location.reload ()> 새로 고침 </a>)
// 다른 프레임의 페이지를 새로 고치는 방법
<스크립트 언어 = javaScript>
parent.another frameid.location.reload ();
</스크립트>
창이 닫히거나 창을 열면 새로 고치려면 <body>의 다음 명령문에 전화하십시오.
<body onload = opener.location.reload ()> 창을 열 때 새로 고침
<Body OnOnload = Opener.Location.Reload ()> 닫을 때 새로 고침
<스크립트 언어 = javaScript>
Window.opener.document.location.reload ()
</스크립트>