开发者

Can I open two websites on one hyperlink?

I want to open tw开发者_如何学Pythono different websites on one hyperlink mean one click.


<SCRIPT LANGUAGE="JavaScript"> 
 function DoubleOpen(site1, site2) { 
 window.open(site1); 
 window.location = site2; 
 } 
</SCRIPT>

From here.


<a href="primaryPage.html" onclick="loadSecondary('secondaryPage.html);">Go Here</a>

<script>
  function loadSecondary(url) {
      window.open(url, '_blank');
      return true;
    }
</script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜