Hello,
I'm a JavaScript newbie with a serious headache. The following routine generates the following error
Error: uncaught exception: Permission denied to get property Location.href
var spawnWindow;
function openSpawnWindow ( url )
{
if( !spawnWindow || spawnWindow.clo sed )
{
spawnWindow = window.open(url ,'spawnWin');
}
else
{
if( spawnWindow.loc ation.href != url )
{
spawnWindow.loc ation.href = url;
}
}
}
Invoked in body
<a href="javascrip t:openSpawnWind ow('http://www.cycleforaut ism.com')">Cycl e for Autism</a>
Windows XP, SP1
Mozilla 1.5, Firebird 0.7, MS IE 6.1
Please show me the errors of my ways.
Yours truly,
Ted
I'm a JavaScript newbie with a serious headache. The following routine generates the following error
Error: uncaught exception: Permission denied to get property Location.href
var spawnWindow;
function openSpawnWindow ( url )
{
if( !spawnWindow || spawnWindow.clo sed )
{
spawnWindow = window.open(url ,'spawnWin');
}
else
{
if( spawnWindow.loc ation.href != url )
{
spawnWindow.loc ation.href = url;
}
}
}
Invoked in body
<a href="javascrip t:openSpawnWind ow('http://www.cycleforaut ism.com')">Cycl e for Autism</a>
Windows XP, SP1
Mozilla 1.5, Firebird 0.7, MS IE 6.1
Please show me the errors of my ways.
Yours truly,
Ted
Comment