Home > Backend Development > PHP Tutorial > javascript - 浏览器在访问链接时不要带上referer???

javascript - 浏览器在访问链接时不要带上referer???

WBOY
Release: 2016-06-06 20:49:08
Original
1074 people have browsed it

我使用php调用北京市预约挂号统一平台,但是那边对php采集好像屏蔽了,可以获取IP地址,但是必须再次选中回车才能打开页面。我查了使用了

<code class="lang-javascript">function open_new_window(full_link){ 
    window.open('javascript:window.name;',
              '<script>location.replace("'+full_link+'")<\/script>');
}
</script></code>
Copy after login
Copy after login

这个函数,但是还是有问题?该怎么处理啊,很着急。。求指教

回复内容:

我使用php调用北京市预约挂号统一平台,但是那边对php采集好像屏蔽了,可以获取IP地址,但是必须再次选中回车才能打开页面。我查了使用了

<code class="lang-javascript">function open_new_window(full_link){ 
    window.open('javascript:window.name;',
              '<script>location.replace("'+full_link+'")<\/script>');
}
</script></code>
Copy after login
Copy after login

这个函数,但是还是有问题?该怎么处理啊,很着急。。求指教

觉得lz还是把PHP的标签去掉吧,你这一句PHP代码都没有。而且,不知道你在表达什么。

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