开发者

Firefox window.parent.location

开发者 https://www.devze.com 2022-12-21 15:44 出处:网络
I\'ve a Html page index.htm which has an iframe to page search.htm the search.htm has code like this function executeSearch() {

I've a Html page index.htm which has an iframe to page search.htm the search.htm has code like this

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

this code executed now from index.htm page and it works great 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 nothing of those worked.

after searching the web i found some one with similar prob he said that this is a security settings in Firefox ... is this true?? and if so开发者_如何学Python is there any workaround ?


Try using window.top.location.href instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消