Firefox window.parent.location

I have an html page index.htm that has an iframe on the search.htm page, search.htm has code like this

function executeSearch() { window.parent.location = "/SearchResults.aspx?t=" + txt_Search.value; } 

this code is now executed from the index.htm page and it works fine on IE and Chrome but not FireFox ... is there any work around? I tried window.parent.location.href, window.opener.location, window.parent.document.location ... but none of them worked.

after searching the net, I found someone with a similar question, he said that these are the security settings in Firefox ... is that true? and if so, is there a workaround?

+7
redirect firefox window.location window.parent
source share
1 answer

Try window.top.location.href .

0
source share

All Articles