Hello everyone, I have function like this in my header function bingframe() { var iframe = document.getElementById('bframe'); iframe.src = 'http://www.bing.com/search?q=' + document.searchForm.search.value.replace(/ /g,'+') + '&go=&form=QBLH&filt=all&qs=n&sk='; } Code (markup): So now when i call this function it responds in Google Chrome,Firefox and the modern browsers but not Internet explorer. Can any of you modify the code accordingly ? Thanking You, I'm
Hi! Try This Method: <script> function bingframe() { document.bframe.location.href = "http://www.bing.com/search?q=" + document.searchForm.search.value.replace(/ /g,'+') + "&go=&form=QBLH&filt=all&qs=n&sk="; } </script> <body onLoad="bingframe();"> <iframe name="bframe" width="100%" height="100%"></iframe> Code (markup): Working Perfect But This Command Is Getting Error: document.searchForm.search.value.replace(/ /g,'+') U Can Run Without This Command.