- <HTML>
- <BODY >
- <SCRIPT LANGUAGE="JavaScript">
- function goTo(url){
- var targetWndName = "MyWindow";
- var wnd = window.open("",targetWndName);
- var link = document.getElementById("link");
- link.target = targetWndName;
- link.href = url;
- link.click();
- }
- </SCRIPT>
- <A ID="link" HREF="javascript:void(0)" style="visibility:hidden;position:absolute;"></A>
- <INPUT TYPE="BUTTON" VALUE=yahoo onclick="goTo('http://www.yahoo.com')">
- <INPUT TYPE="BUTTON" VALUE=msn onclick="goTo('http://www.msn.com')">
- </BODY>
- </HTML>
解决ie的window.open的referer丢失问题。
最新推荐文章于 2022-05-12 00:18:36 发布