473,385 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

window.close in FireFox

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
3 19102
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: fogwolf | last post by:
First a basic outline of what I am trying to do: I want to have a page spawn a pop-up when you click "submit" on its form. On this pop-up page there will be another form. When you click "submit"...
5
by: GEL | last post by:
Hi, I want to open a new browser window, let the user use that window for several minutes, and when they close, I'd like to change the page displayed in the original window. According to...
4
by: Csaba Gabor | last post by:
Up until a few weeks ago, javascript code like window.open("http://mydomain.com", "windowName"); would always bring my new or reused window to the top, with focus. Lately, Firefox (Deer park...
1
by: Jake Barnes | last post by:
I've a button that onclick calls a function that calls the following code. The last 3 lines are for IE, which didn't want to close till I put in the funny line with opener. ...
4
by: Andre | last post by:
With Firefox 1.5+, I used the following code to close a window/tab: === <html><head> <script language="javascript" type="text/javascript"> function closeWindow() { window.open('','_parent','');...
4
by: badaczewski | last post by:
The following javascript appears on a popup window. <script language="javascript" type="text/javascript"> function InsertContact(value) { window.opener.CallBackContact(value); window.close();...
7
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed...
6
by: Howard Rifkin | last post by:
Hi, I my Javascript I popup an authentication window using the command; unamePasswdWindow = open("auth.html","","width=500,height=100"); This works fine in IE, and in Firefox 2.x on...
29
Frinavale
by: Frinavale | last post by:
I have 2 FireFox (version 2) browser windows opened. One is the child of the other. When the user is finished with the child window, a method in the parent window is called to refresh a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.