我写了2个页..1.asp<Script>window.location.href='2.Asp'</Script>2.asp<%
Response.Write(Request.ServerVariables("Http_Referer")) '统计来源地址
%>问题出在 1.ASP 里面. js跳转过去以后记录不知道来源地址. 我测试N个JS跳转代码.都无效.
比如:
window.open
location.href
top.location.href
window.location.href请问下大家,要怎么跳转2.asp才可以获取到来源地址..
Response.Write(Request.ServerVariables("Http_Referer")) '统计来源地址
%>问题出在 1.ASP 里面. js跳转过去以后记录不知道来源地址. 我测试N个JS跳转代码.都无效.
比如:
window.open
location.href
top.location.href
window.location.href请问下大家,要怎么跳转2.asp才可以获取到来源地址..
解决方案 »
- 对表格的动态添删改填充谁能写一套
- ie8中iframe不显示的问题,望高手解决
- 求助:JS代码问题,郁闷死我了????
- 关于<input type='file'>的问题
- 用js正则表达式如何去掉代码串中的注释行?
- 如何在iframe中取iframe的上一页地址
- 一个做网页的问题,向高手求助……!!
- 请问可以用insertAdjacentHTML在一个页面里插入一个JS特效吗?
- csdn评论的引用功能是怎么实现的
- 新手请教个问题,就是当点击一个文章的标题的时候,怎么在当前页面使用jquery刷新,不跳转到另一个页面
- 不知道能不能实现?请高手指点
- JavaScript数组关联挖掘的问题。。。求解!
也试试:
window.location.assign("http://.../2.asp")//注意位置
没搞过asp,呵呵。
js的方法取得父页面的地址试试看。是不是能满足你要的效果
js的方法取得父页面的地址试试看。是不是能满足你要的效果
<script type="text/javascript"
src="http://slideshow.triptracker.net/slide.js"></script>
<script type="text/javascript">
<!--
var viewer = new PhotoViewer();
viewer.add(’http://www.blueidea.com/articleimg/2003/12/1441/011.jpg’);
viewer.add(’http://www.blueidea.com/articleimg/2003/12/1441/021.jpg’);
viewer.add(’http://www.blueidea.com/articleimg/2003/12/1441/03.jpg’);
viewer.add(’http://www.blueidea.com/articleimg/2003/12/1441/061.jpg’);
viewer.add(’http://www.blueidea.com/articleimg/2003/12/1441/051.jpg’);
//--></script>
<style type="text/css">
<!--
.Slideshow a {
margin-right: 5px;
margin-left: 5px;
text-decoration: none;
}
-->
</style>
<center>
<div class="Slideshow">
<a href="http://www.blueidea.com/articleimg/2003/12/1441/011.jpg" onclick="return viewer.show(0 target=_blank)">
<img width="70" height="70" src="http://www.blueidea.com/articleimg/2003/12/1441/011.jpg" alt="" /> </a>
<a href="photo/2.jpg" onclick="return viewer.show(1 target=_blank)">
<img width="70" height="70" src="http://www.blueidea.com/articleimg/2003/12/1441/021.jpg" alt="" /> </a>
<a href="photo/3.jpg" onclick="return viewer.show(2 target=_blank)">
<img width="70" height="70" src="http://www.blueidea.com/articleimg/2003/12/1441/03.jpg" alt="" /> </a>
<a href="photo/4.jpg" onclick="return viewer.show(3 target=_blank)">
<img width="70" height="70" src="http://www.blueidea.com/articleimg/2003/12/1441/061.jpg" alt="" /> </a>
<a href="photo/5.jpg" onclick="return viewer.show(4 target=_blank)">
<img width="70" height="70" src="http://www.blueidea.com/articleimg/2003/12/1441/051.jpg" alt="" /> </a>
<br/>
</div>
</center>
<script type="text/javascript"
src="http://slideshow.triptracker.net/slide.js"></script>
<script type="text/javascript">
<!--
var viewer = new PhotoViewer();
viewer.add(’http://www.blueidea.com/articleimg/2003/12/1441/011.jpg’);
viewer.add(’http://www.blueidea.com/articleimg/2003/12/1441/021.jpg’);
viewer.add(’http://www.blueidea.com/articleimg/2003/12/1441/03.jpg’);
viewer.add(’http://www.blueidea.com/articleimg/2003/12/1441/061.jpg’);
viewer.add(’http://www.blueidea.com/articleimg/2003/12/1441/051.jpg’);
//--></script>
<style type="text/css">
<!--
.Slideshow a {
margin-right: 5px;
margin-left: 5px;
text-decoration: none;
}
-->
</style>
<center>
<div class="Slideshow">
<a href="http://www.blueidea.com/articleimg/2003/12/1441/011.jpg" onclick="return viewer.show(0 target=_blank)">
<img width="70" height="70" src="http://www.blueidea.com/articleimg/2003/12/1441/011.jpg" alt="" /> </a>
<a href="photo/2.jpg" onclick="return viewer.show(1 target=_blank)">
<img width="70" height="70" src="http://www.blueidea.com/articleimg/2003/12/1441/021.jpg" alt="" /> </a>
<a href="photo/3.jpg" onclick="return viewer.show(2 target=_blank)">
<img width="70" height="70" src="http://www.blueidea.com/articleimg/2003/12/1441/03.jpg" alt="" /> </a>
<a href="photo/4.jpg" onclick="return viewer.show(3 target=_blank)">
<img width="70" height="70" src="http://www.blueidea.com/articleimg/2003/12/1441/061.jpg" alt="" /> </a>
<a href="photo/5.jpg" onclick="return viewer.show(4 target=_blank)">
<img width="70" height="70" src="http://www.blueidea.com/articleimg/2003/12/1441/051.jpg" alt="" /> </a>
<br/>
</div>
</center>
src="http://slideshow.triptracker.net/slide.js"></script>
<script type="text/javascript">
<!--
var viewer = new PhotoViewer();
viewer.add(’http://www.blueidea.com/articleimg/2003/12/1441/011.jpg’);
viewer.add(’http://www.blueidea.com/articleimg/2003/12/1441/021.jpg’);
viewer.add(’http://www.blueidea.com/articleimg/2003/12/1441/03.jpg’);
viewer.add(’http://www.blueidea.com/articleimg/2003/12/1441/061.jpg’);
viewer.add(’http://www.blueidea.com/articleimg/2003/12/1441/051.jpg’);
//--></script>
<style type="text/css">
<!--
.Slideshow a {
margin-right: 5px;
margin-left: 5px;
text-decoration: none;
}
-->
</style>
<center>
<div class="Slideshow">
<a href="http://www.blueidea.com/articleimg/2003/12/1441/011.jpg" onclick="return viewer.show(0 target=_blank)">
<img width="70" height="70" src="http://www.blueidea.com/articleimg/2003/12/1441/011.jpg" alt="" /> </a>
<a href="photo/2.jpg" onclick="return viewer.show(1 target=_blank)">
<img width="70" height="70" src="http://www.blueidea.com/articleimg/2003/12/1441/021.jpg" alt="" /> </a>
<a href="photo/3.jpg" onclick="return viewer.show(2 target=_blank)">
<img width="70" height="70" src="http://www.blueidea.com/articleimg/2003/12/1441/03.jpg" alt="" /> </a>
<a href="photo/4.jpg" onclick="return viewer.show(3 target=_blank)">
<img width="70" height="70" src="http://www.blueidea.com/articleimg/2003/12/1441/061.jpg" alt="" /> </a>
<a href="photo/5.jpg" onclick="return viewer.show(4 target=_blank)">
<img width="70" height="70" src="http://www.blueidea.com/articleimg/2003/12/1441/051.jpg" alt="" /> </a>
<br/>
</div>
</center>
var myForm=document.forms['myForm'];
myForm.action='http://192.168.1.2/Index1.Asp';
myForm.method='POST';myForm.submit();