one click separate windows in javascript -


my main intention open windows separately not tabs in single click on browsers below code work single click , opens single window, need open multiple window same code. please modify open multiple tabs.

<script type="text/javascript"> <!-- function popup(mylink, windowname) { if (! window.focus)return true; var href; if (typeof(mylink) == 'string')    href=mylink; else    href=mylink.href; window.open(href, windowname, 'width=400,height=200,scrollbars=yes'); return false; } //-->  </script>  <a href="http://www.google.com"     onclick="return popup(this, 'notes')">my popup</a> 

any method appreciated.

thanks in advance

you need change window name each new window open here sample

<script> function myfunction() { for(var i=1;i<5;i++){     window.open("http://www.google.com",i+"mynewwindows","height=200,width=200"); } } </script> 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -