日期:2014-05-17  浏览次数:20794 次

http_referer 的问题
我需要用   http_referer   来取页面的来源,可是有很多情况下,这个是取不到的,例如 <a   href= "http://127.0.0.1/a.asp "> ddd </a> ,这样是可以的,但 <a   href= "# "   onClick= "window.open( 'http://127.0.0.1/a.asp ', ' ', ' ') "> BBBB </a> ,   这样就不行了,有没有什么办法可以一定得到页面的来源呢?等待

------解决方案--------------------
有的动作,是没有引用页面的。
没办法。。。。
------解决方案--------------------
呵呵测试了一下好像就是不行
------解决方案--------------------
<a href= "# " onClick= "window.open( 'http://127.0.0.1/a.asp ', ' ', ' ') "> BBBB </a>
这样是在一个新窗口中打开的,不会有你想要的效果。
用这样的吧:
<a href= "# " onClick= "var nwin=window.open( 'http://127.0.0.1/abckefghigklmnop.asp ', ' ', ' ');nwin.location.href= 'http://127.0.0.1/a.asp '; "> BBBB </a>