FORUMS: list search recent posts

close window button in Firefox?

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Daniel Connellclose window button in Firefox?
by on Feb 19, 2006 at 3:52:46 am

None of the java script close window buttons seem to work with Firefox windows or tabs. Is it possible?

thanks

Daniel.


Return to posts index

Curtis ThompsonRe: close window button in Firefox?
by on Feb 19, 2006 at 8:44:55 pm

hello...

should work fine - mozilla is very close window javascript friendly....

do you have some specific examples?

sitruc


Return to posts index

Daniel ConnellRe: close window button in Firefox?
by on Feb 20, 2006 at 2:26:55 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.


Return to posts index


Curtis ThompsonRe: close window button in Firefox?
by on Feb 20, 2006 at 3:30:50 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:

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

hope that helps!

sitruc


Return to posts index

Daniel ConnellRe: close window button in Firefox?
by on Feb 20, 2006 at 7:41:59 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.


Return to posts index

Curtis ThompsonRe: close window button in Firefox?
by on Feb 20, 2006 at 3:19:04 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


Return to posts index


Daniel ConnellRe: close window button in Firefox?
by on Feb 21, 2006 at 10:47:35 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.

http://www.sugarandfat.info


Return to posts index

Daniel ConnellRe: close window button in Firefox?
by on Feb 20, 2006 at 2:41:52 am

Whoops, I'll try that again so you can see the script...






or Close Window


Daniel.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]