kevmeister
07-04-2005, 06:23 AM
Alright basically what i want to do is write a code which detects a href location in a certain frame, then if this href is detected send the frame to a new location.
I've tried countless variations of this script, but i just cant get it to work.
So far...
var quirksMode2 = "http://www.google.com.au/";
var quirksmode = (frames['framea'].location.href);
function count()
{
var quirksmode = (frames['framea'].location.href)
if (quirksmode == quirksMode2)
{frames['framea'].location.href = "http://www.hello.com.au"}
else {frames['framea'].location.href = "http://www.ninemsn.com.au"};
document.write('Hello')
setTimeout("count()",1000)
}
Then i'd launch 'count()'.
-------------------------------------------------------------------------
Any ideas on fixing it up?
I've tried countless variations of this script, but i just cant get it to work.
So far...
var quirksMode2 = "http://www.google.com.au/";
var quirksmode = (frames['framea'].location.href);
function count()
{
var quirksmode = (frames['framea'].location.href)
if (quirksmode == quirksMode2)
{frames['framea'].location.href = "http://www.hello.com.au"}
else {frames['framea'].location.href = "http://www.ninemsn.com.au"};
document.write('Hello')
setTimeout("count()",1000)
}
Then i'd launch 'count()'.
-------------------------------------------------------------------------
Any ideas on fixing it up?