Friday, April 28, 2006
Tech: IE Javascript Popup Window Bug
I hate IE.Hopefully this will save somebody hours of frustration. IE seems to have bug with opening Javascript popup windows. The following code works fine in Firefox etc. but fails with no erros in IE:
myURL = "Stores.html";
newWindow = document.open(myURL,'Store Locations','width=400,height=700,toolbar=0,resizable=0');
if (window.focus) {newwindow.focus()}
return false;
Apparantly IE doesn't like the space in the string for the name of the new window. Removing the space in the string fixes the problem.
The same applies to the "window.open" method.
posted by Jambo Consulting at 8:27 PM