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.closed )
{
spawnWindow = window.open(url,'spawnWin');
}
else
{
if( spawnWindow.location.href != url )
{
spawnWindow.location.href = url;
}
}
}
Invoked in body
<a href="javascript:openSpawnWindow('http://www.cycleforautism.com')">Cycle 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