Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Web Design (WordPress, Joomla, etc.) close window button in Firefox?

  • Curtis Thompson

    February 19, 2006 at 8:44 pm

    hello…

    should work fine – mozilla is very close window javascript friendly….

    do you have some specific examples?

    sitruc

  • Daniel Connell

    February 20, 2006 at 2:26 am

    Well, for example:


    or Close Window

    works fine with IE, but has no effect at all in Firefox.

    I’ve tried some others as well, just the same.

    Daniel.

  • Daniel Connell

    February 20, 2006 at 2:41 am

    Whoops, I’ll try that again so you can see the script…

    or Close Window

    Daniel.

  • Curtis Thompson

    February 20, 2006 at 3:30 am

    hello…

    ahh – ya. in this example, it’s a security thing that firefox won’t let you do…ie warns you first but firefox just disallows it…

    here’s a page that i made to show you how it would work and how to see the javascript console to further debug stuff like this:

    https://sitruc.com/cow/winclose.html

    hope that helps!

    sitruc

  • Daniel Connell

    February 20, 2006 at 7:41 am

    Ok, that makes sense.

    How then would I use this with a window that’s been opened from within a shockwave file? My site is done in Director and I want to open up extra windows with video in them, but with a close window button. Most people are quite rightly not using IE these days…

    Daniel.

  • Curtis Thompson

    February 20, 2006 at 3:19 pm

    hello…

    i take it that hasn’t worked? hmm…i would think it would by default as the shockwave app ultimately still just tells firefox to open the new window so firefox knows about it…

    a workaround might be to have the child window tell the parent shockwave file to close it – a wrapper function in the shockwave that the child could call via opener.[FUNCTION_NAME]…

    sitruc

  • Daniel Connell

    February 21, 2006 at 10:47 am

    I’ll try it again to make sure I didn’t just get it wrong. Will report back with results.

    Thanks for the help btw.

    Daniel.

    https://www.sugarandfat.info

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy