Menu
Hey,
I’m using a parent window to open a child window at the click of a button like so:
window.open(“multiviewer.html”, “mv”);
The problem is I only want to open the window once, I have tried a few ways around this but no matter what I do the window keeps reloading on each button click. Right now the code looks like this:
var viewer = false;
var url;
function callViewer(theUrl)
{ if(viewer ==false )
{ window.open(“multiviewer.html”, “mv”);
viewer =true;
}
url = theUrl)
}
(callViewer is the onClick method of the button)
Any advice would be great please