I am running an external url in an iframe. All I want is to be able to open the url in a new window. I am using the following Javascript code:
This works perfectly in Firefox,Opera and Netscape but for some reason that I can't understand I get the following error in IE7.
"Error:The marshaled interface data packet (OBJREF)has an invalid or unknown format"
I am running on XP and SiteN is a global variable carrying the url.
This seems very basic and as I am new to JS I have spent days scouring the Net for an answer, without success.
Can anyone help please
Code:
function OpenSite()
{
var newwindow
newwindow=window.open(SiteN,'name');
if (window.focus) {newwindow.focus()}
}
"Error:The marshaled interface data packet (OBJREF)has an invalid or unknown format"
I am running on XP and SiteN is a global variable carrying the url.
This seems very basic and as I am new to JS I have spent days scouring the Net for an answer, without success.
Can anyone help please
Comment