Forum Moderators: open
I am trying to detect this using this function:
if (window.frames['ifrm_1'].location.href=='')
{
window.frames['ifrm_1'].location.href='home.html';
}
but it doesn't work. I've tried =='', =="" and ==undefined
also, alert(window.frames['ifrm_1'].location.href) pops up saying "about:blank" so I tried testing with =='about:blank' and I can't make that work either.
Anyone know how I could do this? Or is this just a bad idea in the first place?
Cheers
Tim