从页面a.html到页面b.html a.html 复制代码 代码如下:<html> <head> <title>a</title> <script language = "javascript"> function callBack(){ alert("Come back !"); } </script> </head> <body> <a href="b.html">去b页面</a> </body> </html> b.html 复制代码 代码如下:<html> <head> <title>b</title> <script language = "javascript"> function goB(){ window.opener.callBack(); } </script> </head> <body> <a href="#" onClick="javascript:goB();">返回a页面</a> </body> </html>
推荐阅读
asp 取文本框名称代码
<% For each obj in Request.Form response.write "<font color=red>"&obj&"</font><br>" obj=Request.Form(obj) response.write obj&"<br>" Next %> <form name=form action="1.asp" method="post"> <input type=>>>详细阅读
本文标题:Js callBack 返回前一页的js方法
地址:http://www.17bianji.com/kaifa2/JS/29173.html
1/2 1