js implements a link that opens two link addresses

  • 2020-06-12 08:27:21
  • OfStack

This article illustrates how js implements a single link to open two link addresses. Share to everybody for everybody reference. The details are as follows:


<script type="text/javascript">
<!--
function adClick(ad, site) {
 window.open(ad);
 window.location = site;
}
-->
</script>
<a href="javascript:adClick('http://www.163.com/','https://www.ofstack.com/');">
1 Two links open two link addresses </a>

Hopefully, this article has been helpful in your javascript programming.


Related articles: