跳转传值

WBOY
Release: 2016-06-23 14:21:12
Original
1312 people have browsed it

<script> <br /> setTimeout("window.location.href='http://www.xxxxx.com'",10) <br /> </script>
怎么经过这个传一个值给www.xxxxx.com这个网站的首页?还有在这www.xxxxx.com这个首页怎么接收传过来的那个值?谢谢!


回复讨论(解决方案)

setTimeout("window.location.href='http://www.xxxxx.com?id=123'",10)

php 接收
echo $_GET['id'];

//第一个参数是要执行的函数,第二个参数是间隔时间,后面的参数是要传入的值
window.setTimeout(test,1000,'abc','123');

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template