kimberlyhello
04-09-2007, 02:42 AM
Hi,
I have an iframe that loads multiple pages depending on what the user types into a text box. It works fine in firefox, but not in internet explorer(6 and 7)
Here is the javascript code:
window.onload = function () {
if(document.forms["searchbox_006388034472510427843:pil-s7xg5oy"].q.value.toLowerCase() == "google"){
window.open("http://www.google.com", "site")}
Here is the iframe:
<iframe src="http://www.yahoo.com" width="95%" height="95%" align="top" name="site" id="site"></iframe>
Does anyone see a problem...I don't. Is it a problem with iexplorer? Maybe there is some kind of script I can use for people with browsers other than Firefox.
Thanks in advance to anyone that can help.
I have an iframe that loads multiple pages depending on what the user types into a text box. It works fine in firefox, but not in internet explorer(6 and 7)
Here is the javascript code:
window.onload = function () {
if(document.forms["searchbox_006388034472510427843:pil-s7xg5oy"].q.value.toLowerCase() == "google"){
window.open("http://www.google.com", "site")}
Here is the iframe:
<iframe src="http://www.yahoo.com" width="95%" height="95%" align="top" name="site" id="site"></iframe>
Does anyone see a problem...I don't. Is it a problem with iexplorer? Maybe there is some kind of script I can use for people with browsers other than Firefox.
Thanks in advance to anyone that can help.