a.html
<a href="b.html?url=http://13763682.com"><input type="button" value="马上观看"></a>
<a href="b.html?url=http://68648846.com"><input type="button" value="体验一下"></a>
<a href="b.html?url=http://fedgdf.com"><input type="button" value="立即观看"></a>
b.html
<script type="text/javascript">
接收a.html传的url
window.location.href='传的url页面';
</script>
接收哪个url打开相应url页面,请各位帮忙看看
<a href="b.html?url=http://13763682.com"><input type="button" value="马上观看"></a>
<a href="b.html?url=http://68648846.com"><input type="button" value="体验一下"></a>
<a href="b.html?url=http://fedgdf.com"><input type="button" value="立即观看"></a>
b.html
<script type="text/javascript">
接收a.html传的url
window.location.href='传的url页面';
</script>
接收哪个url打开相应url页面,请各位帮忙看看
if(m) location.href=m[1];
var u=window.location.href;
var reg=/url=(.*)/;
u=u.match(reg)[1];
window.location.href=u;
}
window.onload=init;
这样试试
b.html -->跳转到 http://13763682.com
window.onload=init;这句是什么意思,在执行跳转方法之前判断页面加载完应该怎么加