Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Simple Close Window JavaScript Doesn't Work in Firefox
Old 04-15-2008, 08:52 PM Simple Close Window JavaScript Doesn't Work in Firefox
Junior Talker

Posts: 1
Name: Carole Cross
Trades: 0
I have this simple script: <a href="javascript:window.close();"></a>

It works in IE, but not in Firefox. Any clue as to why? Thanks.
BeHereNow is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-19-2008, 12:28 PM Re: Simple Close Window JavaScript Doesn't Work in Firefox
addonchat's Avatar
Super Talker

Posts: 115
Name: Chris Duerr
Trades: 0
Your error console should indicate the reason. With FireFox, you can't close windows that you didn't open. Some people have found workarounds, like changing the parent using window.open or window.opener=self, or using a 0 pixel frame, but most of these hacks no longer work. You'll get an error message like "Scripts may not close windows that were not opened by the script"

If your script is indeed the one both opening and closing the window, then I'd be curious to see what your JavaScript/error console is saying..
__________________
Chris Duerr
AddonChat Java Chat Software

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
addonchat is offline
Reply With Quote
View Public Profile
 
Old 04-19-2008, 03:05 PM Re: Simple Close Window JavaScript Doesn't Work in Firefox
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Do you want websites closing your windows for you? Firefox has the right idea here in limiting this amount of control.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to Simple Close Window JavaScript Doesn't Work in Firefox
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 4.56118 seconds with 12 queries