For example, Baidu included your A, you want to be clicked from a station after access, then jump or pop-up B station, you can use the following way.
Of course, you can use the window.open () pop-up window, you can have multiple popup windows, you can also use the form of the way. However, there are two ways to filter by 360.
Self.location this way is turned and will not be filtered as ads.
<script type= "Text/javascript" >
$ (function () {
var s=document.referrer;
//Get Source Address
if (S.indexof ("Baidu") >0)
//Source whether Baidu appears
//self.location= "http://www.baidu.com/";//Original Window
document.getElementById (' Openwin '). Submit ();
document.getElementById (' openWin2 '). Submit ();
//window.open ("http://www.taobao.com")
//window.open ("http://www.360.com")
});
</script>
<form id= "Openwin" action= "http://www.taobao.com" target= "_blank" method= "get" ></form>
<form id= "openWin2" action= "http://www.360.com" target= "_blank" method= "get" ></form>
This article is from the "Shanghai Blue Snail Network" blog, please be sure to keep this source http://viqecel.blog.51cto.com/10859227/1859710
JS Determine whether the route is Baidu and other search index to pop windows or automatic jump