/    Sign up×
Community /Pin to ProfileBookmark

Firefox problem with location.href to frame!

Hi,

In a frame, called ‘basket’ I open a new popup window:

function productChange() {
var prodchange = window.open(‘../user/ProductChange_popup.jsp’,’prodchange’,’location=no,status=no,toolbar=no,scrollbars=yes,width=350,height=180′);

prodchange.opener = top;
}

  • In the new popup window I want to redirect back to the frame, when I push a button.
  • function baskets ( ){
    window.opener.frames.basket.location.href=”../user/Basket.jsp”;

    window.close();
    }

    It works, but only in IE, NOT in Firefox. Why is that? Can anyone help me?

    to post a comment
    JavaScript

    4 Comments(s)

    Copy linkTweet thisAlerts:
    @KravvitzOct 05.2005 — Please provide a link to the page in question.
    Copy linkTweet thisAlerts:
    @jeppeauthorOct 05.2005 — I can´t provide you a link because its an internal webportal (needs passwords), but if it necessary I can make a test example?

    I hope someone can help me without the example?
    Copy linkTweet thisAlerts:
    @KorOct 05.2005 — window.opener.top.frames['basket'].location.href="../user/Basket.jsp";
    Copy linkTweet thisAlerts:
    @jeppeauthorOct 05.2005 — Thanks that helps :-)
    ×

    Success!

    Help @jeppe spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.3,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,

    tipper: @Samric24,
    tipped: article
    amount: 1000 SATS,
    )...