By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,698 Members | 1,658 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,698 IT Pros & Developers. It's quick & easy.

window.close in FireFox

P: n/a
Hi all!

I have this in IE:

<input type="button" class="box" value=" Close "
onClick="window.close();">

but it does not work in FireFox.
Can anyone tell me why

Sonnich

Jul 6 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Sonnich wrote:
Hi all!

I have this in IE:

<input type="button" class="box" value=" Close "
onClick="window.close();">

but it does not work in FireFox.
Can anyone tell me why

Sonnich
Did you try Googleing window.close firefox
I did and found the answer immediately.
Takes a look at http://www.interwebby.com/blog/2006/02/04/3/
and there are other hints returned from that google search
Jul 6 '06 #2

P: n/a
Paul Lautman wrote:
Sonnich wrote:
>Hi all!

I have this in IE:

<input type="button" class="box" value=" Close "
onClick="window.close();">

but it does not work in FireFox.
Can anyone tell me why

Sonnich

Did you try Googleing window.close firefox
I did and found the answer immediately.
Takes a look at http://www.interwebby.com/blog/2006/02/04/3/
and there are other hints returned from that google search

Paul,

Isn't this a security issue? I mean, it should not be possible to close
a window you didn't open. I find the solution very creative though.

Vincent
Jul 6 '06 #3

P: n/a
Vincent van Beveren wrote:
Paul Lautman wrote:
>Sonnich wrote:
>>Hi all!

I have this in IE:

<input type="button" class="box" value=" Close "
onClick="window.close();">

but it does not work in FireFox.
Can anyone tell me why

Sonnich

Did you try Googleing window.close firefox
I did and found the answer immediately.
Takes a look at http://www.interwebby.com/blog/2006/02/04/3/
and there are other hints returned from that google search


Paul,

Isn't this a security issue? I mean, it should not be possible to
close a window you didn't open. I find the solution very creative
though.
Vincent
I don't look after FireFox's security so you're asking the wrong person.
Jul 6 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.