Firefox IFRAME JavaScript
-
Hello, Can anyone tell me why this does not work in FireFox? window.parent["myiframe"].location.href = window.parent["myiframe"].location.href = 'http://www.mysite.com'; This script is being called from LinkButton in another IFRAME window. It's works prefectly in IE and I don't like that. X| Thank you for the help. RB
-
Hello, Can anyone tell me why this does not work in FireFox? window.parent["myiframe"].location.href = window.parent["myiframe"].location.href = 'http://www.mysite.com'; This script is being called from LinkButton in another IFRAME window. It's works prefectly in IE and I don't like that. X| Thank you for the help. RB
Why not just: window.parent["myiframe"].location.href = 'http://www.mysite.com'; ??
-
Why not just: window.parent["myiframe"].location.href = 'http://www.mysite.com'; ??
Yes I agree that, but for IE to work that is how I had to do it for some reason. However I have tested Firefox as well with the example you provided. I was doing some reading and even tried: window.parent.frames["myiframe"].location.href = 'http://www.mysite.com'; and that did not work either. It's almost like Firefox is ignoring window.parent
-
Yes I agree that, but for IE to work that is how I had to do it for some reason. However I have tested Firefox as well with the example you provided. I was doing some reading and even tried: window.parent.frames["myiframe"].location.href = 'http://www.mysite.com'; and that did not work either. It's almost like Firefox is ignoring window.parent
Just in case anyone else runs into this problem. Just use: window.parent.document.getElementById('myiframe').src = 'http://www.mysite.com' Worked perfect. RB