I am having issues with the window.createpopup() method… it won’t stay open… it opens for a second then closes without losing focus or anything….
this is the function that i use…
[code]
function testPopup(refObj){
var popupObj = window.createPopup();
popupObj.document.body.style.border = “1px solid black”;
popupObj.document.write(“<iframe width=100% height=100% frameborder=0 src=’http://www.thecastleaargh.com/’ scrolling=no></iframe>”);
popupObj.show(“0”, “20”, “100”, “200”, refObj);
}
and it is supposed to open up the website I want into the frame wich will effectively fill the popup window… but it won’t work… I reference it with a simple <button onclick=”testPopup(this)”>test</button>
is there something wrong that I don’t see… or is it becuase the variable holding the popups info is local to the function only.. or is there something else
if it is becuase the variable is local would you recomend that I simply make it global and define it in the script outside of functions… or should I make the funciton wait for the popup to terminate… thanks for your help ahead of time ?