Greetings
I have a page that has a link to open a separate window and display some dynamic text data. I am using the following script to open that window and it works fine. I feel i should mention that this script is placed in the HTML file of the page page with the link.
{if(command==”openWindow”){ openNewWindow()}}
function openNewWindow(){setTimeout(
window.open(‘expertise.html’,’newwindow’,
‘height=200,width=300,toolbar=no’)),0}
I also would like to have another link on the same page which opens another separate window, however if I reuse the above script in the same HTML document, when I click the links it open two windows simultaneously. This is the script I am using for the second window
{if(command==”openWindow”){ openNewWindow2()}}
function openNewWindow2(){setTimeout(
window.open(‘gallery.html’,’newwindow2′,
‘height=200,width=300,toolbar=no’)),0}
Is there any way to keep it from opening both windows at once?
I’m sure there’s an easy solution, however, scripting is not my strong point
Thank You