nohandlesleft254
IS-IT--Management
Hi,
I'm using the code below to check whether a quote has already been opened, and if so just focus it rather than open again. Only thing i cant work out how to do is get it to not reload the page on focus....?
<!-- OPEN QUOTE FUNCTION
<!-- First set the variable for the window name -->
function OpenQuote(theURL,winName,features)
{
var win = window.open(theURL,winName,features);
<!-- Then check if a window with that name exists -->
if (win)
{
<!-- If it does; focus that window -->
win.focus();
}
else
{
<!-- If it doesn't; create the new pop-up -->
var win = window.open(theURL,winName,features);
}
}
-->
I'm using the code below to check whether a quote has already been opened, and if so just focus it rather than open again. Only thing i cant work out how to do is get it to not reload the page on focus....?
<!-- OPEN QUOTE FUNCTION
<!-- First set the variable for the window name -->
function OpenQuote(theURL,winName,features)
{
var win = window.open(theURL,winName,features);
<!-- Then check if a window with that name exists -->
if (win)
{
<!-- If it does; focus that window -->
win.focus();
}
else
{
<!-- If it doesn't; create the new pop-up -->
var win = window.open(theURL,winName,features);
}
}
-->