this is my code
<pre><script type="text/javascript">
function SysPopup(button, url, windowName, windowFeatures) {
window.open('http://www.google.com/','windowName1', 'top=100,left=300,width=200,height=200')
window.open('https://www.yahoo.com','windowName2' , 'top=150,left=350,width=300,height=300')
window.open('https://www.yandex.com','windowName3', 'top=200,left=400,width=400,height=400')
window.open('https://www.hotmail.com','windowName4', 'top=250,left=450,width=400,height=400')
}
</script>
</style>
</head>
<body bgcolor="black" margin-top=20px >
<br><br>
<br><br>
<input type="button" value="Open google" onclick="SysPopup('http://www.google.com/','windowName1', 'top=200,left=200,width=200,height=100' )"><br><br>
<input type="button" value="Open yaho" onclick="SysPopup('https://www.yahoo.com','windowName2' , 'top=230,left=230,width=400,height=400' )"><br><br>
<input type="button" value="Open yandex" onclick="SysPopup('https://www.yandex.com','windowName3', 'top=250,left=250,width=400,height=400' )"><br><br>
<input type="button" value="Open hotmail" onclick="SysPopup('https://www.hotmail.com','windowName4')"><br><br>
my problem is when I run this code, the window opens at the top, but the window of the button pressed does not open when the buttons are mixed together
what I want is for it to open the right window even when I randomly press the buttons
What I have tried:
<pre><a href="http://google.com/" target="_blank">Open Window 1</a>
<a href="http://yahoo.com" target="_blank">Open Window 2</a>
<a href="http://yandex.com" target="_blank">Open Window 3</a>