Window.close doesn't work with Firefox

I have used the code from the followinging reference on OTN to close my window:
Closing brower window
It works fine for IE, but not for Firefox. How can I make it work with Firefox?

Hello,
I use a couple of steps to get windows to close in Firefox. Firstly, I set win=top and win.opener=top, as below:
function closeWindow()
win=top;
win.opener=top;
win.close();
But more importantly, you need to set a Firefox preference setting:
Locate your Firefox preferences file - in Windows XP/2000, the path is usually C:\Documents and Settings\[User Name]\Application Data\Mozilla\Firefox\Profiles\xxxxxxxx.default\, where xxxxxxxx is a random string of 8 characters. Open the file prefs.js, and add the following line to the end of the file: user_pref("dom.allow_scripts_to_close_windows", true);
Which is a bit fiddly, but the best way I've found so far...
James

Similar Messages

  • Laptop Mouse touchpad doesn't work with Firefox 4

    Previously in Firefox 3, I could use the touchpad on my laptop to middle click, and scroll. Now it won't work with Firefox 4. When I try to use the scroll feature it registers the mouse as scrolling, but the page doesn't move at all in Firefox. When I try to open a link in a new tab using middle click it shows the auto scroll but even then the orientation is wrong as well. When trying to close a tab using the middle click it shows the same left to right auto scroll instead. It works fine with a normal mouse, but with a touchpad it doesn't work at all. I have also tried using drivers to fix the problem, but that was not the issue.

    well, if you stick to firefox 4, then i'd say, well, babylon in my memories, it offers a online prompt method of translation, supporting tens of languages, similar to google translate webpages, the url is http://translation.babylon.com/ you can keep firefox 3.x and 4.0 in the same time in your windows. firefox 3.x to 4.0 update is not compulsory, so use the one you feel good with.

  • Windows 7 cleartype NOT working with Firefox 6 (it worked with Firefox 5)

    As soon as I upgraded to Firefox 6 on Aug 16, 2011 - the Windows 7 cleartype stopped working within firefox.
    The text now looks blurry and light. I disabled all addons, tried safe mode. It was always the same thing.
    To fix this, I manually downgraded to Firefox 5. As soon as I did this, the cleartype was back. The text was dark, the way it always was.
    I have the same addons with both versions and I've tried to repeatedly install both versions, but with the same end result. Windows Cleartype doesn't seem to work in Firefox 6 (compared to Firefox 5).
    Firefox 6 is amazing, but non-compatibility with Windows7 cleartype is a big issue. One of the best features of firefox is the tinkering it allows with it's fonts, and the clarity of text it allows. Sadly this doesn't work in Firefox 6.
    I've downgraded to Firefox 5 for now. Hopefully this will be resolved soon..

    I had the exact same issue after updating. I even resorted to downgrading yesterday after not finding any decent work-around for this, but when it forced an update today upon starting Firefox I just had to clear this up. Here's what you can do:
    # Type '''about:config''' in the address bar.
    # Type '''gfx.font''' into the filter bar.
    # Focus on the following parameters: '''cleartype_level''', '''enhanced_contrast''', '''gamma''', '''pixel_structure''' and '''rendering_mode'''. Forget about the rest.
    # Press Start and type '''regedit''' into the search field.
    # Once there, choose the following: ''HKEY_CURRENT_USER - Software - Microsoft - Avalon.Graphics - DISPLAY1'' and note down each value represented in the data column within the brackets. For example, my '''ClearTypeLevel''' value is 100, '''EnhancedContrastLevel''' is 400 and '''TextContrastLevel''' is 2.
    # Now that you've found these values, go back to the configuration in Firefox and right click on the '''cleartype_level''' parameter, and choose Modify. Now enter that very same value from before (100, for me) in there. Do that with the rest of the values. I put my '''rendering_mode''' as 2, which could coincide with the '''TextContrastLevel''', but it might not, but the '''rendering_mode''' values range from -1 to 5, so see which works for you.
    # To change the '''gamma''' and '''pixel_structure''', go back to the '''Registry Editor''' like before, but this time follow this: ''HKEY_LOCAL_MACHINE - SOFTWARE - Microsoft - Avalon.Graphics - DISPLAY1'' and note the values within the brackets from there.
    # Replace those values to the ones in the configuration and you're all set!
    If you want to read more about those configuration parameters and their values, [http://kb.mozillazine.org/Thunderbird_6.0%2C_etc.#Font_rendering_and_performance_issues here's] a great article of sorts about it. It's about Thunderbird 6.0, but everything mentioned there correlates with Firefox 6.0.
    This is as close as I've gotten to the text looking like it's supposed to and if even this doesn't work for you then I'm open to any and all suggestions anyone might have : /

  • Comcast email doesn't work with firefox 26. I can't get a full inbox, get to my preferences to change, drop downs need to use arrows to get to

    firefox 26 doesn't work with comcast email. won't keep me signed in; won't show whole inbox in either full or lite; won't allow me to get to preferences; drop downs only work with arrows. I could just keep going.
    Earlier this week they worked fine.

    Be sure to delete the login.comcast.net cookie, it is not near the other comcast and xfinity cookies.

  • Google toolbar doesn't work with Firefox. How to Fix?

    The Google toolbar doesn't work with my current version of Firefox. When I went to update, the Google toolbar was removed and I can't get it back. How do I fix this so I can still use Firefox?

    Google needs to update the Google Toolbar program for Firefox 5.0.
    The Google Toolbar '''7.1.20110512W''' version does work pretty good in Firefox 5.0 by using the Compatibility Reporter extension. But not every feature works 100%.<br />
    https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    http://googlesystem.blogspot.com/2011/06/enable-google-toolbar-in-firefox-5.html

  • The Google Toolbar doesn't work with Firefox 5 and all my bookmarks are saved in the toolbar. How do I go back to version 4?

    Unfortunately any enhancements that you've made with FF5 don't outweigh the loss of my bookmarks in the Google Toolbar. How do I go back to FF4?

    Install the following Add-on until Google releases a new version of their toolbar that is compatible with Firefox 5. Most Add-ons that worked with Firefox 4 should still work with Firefox 5, but the developers need to update a line in their Add-on's code to indicate with which versions of Firefox the Add-on is compatible. The following Add-on adds a "Compatibility" button in your Add-ons > Extensions that you may need to click after installing it and restarting Firefox.
    *Add-on Compatibility Reporter: https://addons.mozilla.org/en-US/firefox/addon/15003
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Adobe PDF Plug-In For Firefox and Netscape
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**SAVE the installer to your hard drive (save to your Desktop so that you can find it after the download). Exit/Close Firefox. Run the installer you just downloaded.
    #**Use either of the links below:
    #***https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox ''(click on "Installing and updating Adobe Reader")''
    #***''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #*After the installation, start Firefox and check your version again.

  • MobileMe preferences button and menu doesn't work with Firefox 4 on Mac OS X 10.6.6

    When I login to my MobileMe account I have two buttons on the top right of the page: Preferences and My Account name.
    Both I can select but when I do I cannot press either one of the menu entries that show. So I cannot change anything or create folders in iDisk for instance. All did work on Firefox version 3.6. It also works on Safari.
    What settings do I have wrong? I like Firefox more than Safari.
    Thanks.
    Fritsander

    You can install the portable Firefox 3.6.x version to access websites that do not work with Firefox 5+.
    *http://www.freesmug.org/portableapps:firefox#toc1
    *http://sourceforge.net/projects/osxportableapps/files/Portable%20Firefox%20OS%20X/

  • Facebook doesn't work with Firefox 28.0 + Flashplayer 12,0,0,77

    Hey everybody,
    first of all let me tell you the specs of my system:
    Laptop:
    Windows 7 Home Premium  64 bit
    Acer Aspire 7745G Laptop
    Intel i7 Q720 @1,6 GHz
    4,00 GB RAM
    Browser:
    Mozilla Firefox 28.0
    Flash Player Version:
    12,0,0,77
    Problem:
    So the Flash Player and Firefox just updated like 1-2 days ago and after that Facebook didn't work anymore. As you might know Facebook just refreshed its design so I think that they're now using some kind of Flash for their layout.
    Well no matter what Facebook is using, I only get a white screen with no Layout, here's a screenshot (By the way, I just get this error with the new Firefox, Chrome works with no problems):
    In addition to that  all other video streaming pages like youtube couldn't load its videos. Firefox always displayed this message:
    I was waiting for about 10 minutes, after clicking on "Continue", then I closed Firefox by force with the Taskmanager.
    This message always appeared when I was trying to watch a Flashvideo on Firefox, no matter which page (Youtube, etc.).
    When I clicked "Stop Plugin" of course the Flash Player crashed. And it showed me this message instead of the video:
    Reloading the page or clearing the Firefox cache didn't solve the problem. I also cleared the Flash Player cache in the Flashplayer and the Macromedia folder as it is described here:
    http://helpx.adobe.com/en/flash-player/kb/flash-player-games-video-or.html#main_6__Remove_ Flash_Player_cache
    So after that I deinstalled Firefox and the Flashplayer, reinstalled them and restarted my laptop.
    Now the videos work fine, but Facebook still isn't displayed correctly, I can still only see the white screen which I showed you above.
    This is how my plugins page looks like:
    So brief summary:
    Problem:
    New Facebook + Flash videos doesn't/didn't work
    What I already tried:
    1. Reload the pages
    2. Clearing Firefox Cache
    3. Clearing Flashplayer Cache in the Flashplayer and Macromedia folder
    4. Updating/Reinstalling Firefox several times
    5. Updating/Reinstalling Flashplayer several times
    6. After that rebooting Laptop
    7. Testing Facebook on Chrome and it works in that browser, so either Firefox or Flashplayer is corrupt/faulty
    Status Quo:
    Facebook still not working
    Videos now working on every page (after reinstalling and rebooting the laptop)
    Please don't give me the advice to just change browsers, I have Chrome and it works, but I still like Firefox more and I would be very grateful, if somebody could help me solving this problem.
    I tried to be detailed as possible, but if you still need further information feel free to ask me.
    Best Regards,
    Kahzel

    Ok, I solved it now. The problem was the Adblock plus Add-on which blocked all facebook contents.
    I just tweaked the filter to allow all akamai.net content, then it worked.
    So to sum it up Adblock Plus was the reason why noting worked, I don't know why the videos crashed though, but this issue seems to be fixed, too so I don't have any other complains.
    So what did I do to come to this conclusion?
    Disabled all Add-Ons
    See if the problem still occurs
    Activate Add-Ons one by one to see which one causes the problem
    Look up why the Add-On is causing the problem and how to fix this
    That's it. Thanks for reading my post

  • Att.mail doesn't work with firefox yet is great with IE or google chrome. Won't delete,move or reply

    yahoo comes up, then in switching to mail, the mail appears and I can look at each piece. However, the delete, move, and reply buttons are not responding. Also, I can't generate a new message. The system works fine with IE or Google Chrome.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • I use a browser application called Changepoint...a project time recording tool. It does not navigate to the project folders or interact at all using Firefox, only IE. What do I need to ask the tech team to troubleshoot why it doesn't work with Firefox?

    See question. I'm assuming that I or them are missing something with the handshake once the basic appl is launched. The Changepoint appl does launch in the browser...it just doesn't function when you get into it, e.g. clicking on a hyperlink on the screen doesn't launch a sub-appl/module to show project folders. It doesn't crash the browser or window, it just doesn't do anything.

    Check with Changepoint support and ask if that application is made to be compatible with Firefox, and which versions of Firefox it has been tested with.

  • Flash player doesn t work with firefox

    hey every body
    after a lot of tries ,the version 11.8.800.168 doesn t work properly
    a good down load ,good installation without error message but youtube doesn t detect the plug in ?
    i check and it s installed :just a remark :the plug in weights about 6 mo installed and i downloaded 16mo ?
    and if i try with IE9 to compare:surprise the video is good but no sound
    perhaps a good idea will arrive ,but it s not very easy
    bye

    Thanks for the assistance Chris.  I tried the 11.7 option without success.  I downloaded the 11.7 file, I closed all browsers, used the flashplayer uninstaller, restarted the CPU, installed the 11.7 (with auto updates disabled).  Restarted Firefox, tested a Flickr video, same "no-play" results. 
    However, after doing the same thing and downloading the Archive version http://download.macromedia.com/pub/flashplayer/installers/archive/fp_10.3.183.75_archive.z ip I was able to play the Flickr videos!  WooHoo. 
    I completed the update process to the latest version, and now the videos play properly with the latest version!
    Not sure what the bad actor was, the 11.7 version did not fix it, but the older 10.3 version did!
    Thanks to all for the assistance with this pain in the arse issue.
    John   

  • HT4061 Drag and drop function in Windows 8 doesn't work with iTunes.

    How to import music files from Windows 8 to iTunes 11.0.3 x64? Drag and drop function doesn't work. Thank you!

    > Straight drag and drop to PS produced a warning message so, when I then tried to drag on to the PS task bar button, I got the Ø cursor but on moving into the PS window and releasing the mouse button there, the file opened.
    That's the strangest behavior that I would imagine. Are you using the default vista aero theme or you have turned down or using custom theme and visual effects?
    > it needs to be pointed out that this is a really bad habit that will smack you in the face one day...
    I don't understand what you mean. If you are concerned about viruses, in my understanding copying and opening a file from the internet which is what "Save image as" does, is less safe than coping and pasting pixels. Copying and pasting pixels is the same as coping and pasting text from your web browser, it can't execute hidden code. If that was possible everybody will get viruses at the moment text or pixels are displayed on your browser.
    By the way when you view a page from the internet, image files are already downloaded in the temp folder of your computer but only the browser uses them unless you open them from there and use in another program. So if you have a virus protection the images are already scanned.

  • Windows 7 doesn't work with verizon modem westell 6100

    I have a new gateway 4869 desk top. it will go on the internet and connect with gateway support and outlook express but will not connect with any other site like ebay,amazon,etc.it goes to these sites and waits for a reply that never comes. the computer works ok when connected to the t1 connection at best buy. i have an old dell with xp that works fine with this modem and hookup.i also had this happen with a new hp desktop. gateway and hp are not able to fix this saying it is the modem. verizon says if modem works with xp it is ok. this modem is old and may not have recent drivers which i can't check cause cant go online.anyone else have this problem or solutions.
    Solved!
    Go to Solution.

    I run Win7 on my desktop & XP on my older Laptop, both Dell, connecting to the internet via the same  DSL LAN  router.  Had problens connecting to some sites on my desktop, but not on the laptop; both runnng the same Anti-virus software, but. firewall exception settings were different for managing program connections. My browser would attempt to make the connections and just keep running until timed out.
    You mention that your older Dell running XP connects to the web via the same modem,  and verizon tech support states this proves the modem works properly.  I agree, otherwise your older PC wouldn't connect to the web either.  If it's not the hardware it must be the software  settings.  Your firewall settings may be interfering with the connections from being made. I suggest that you check the settings used with your Win7 firewall first. What internet security software are you running?  Mine allows personal firewall settings which overrides the basic Windows firewall.
    I'd also check the internet option settings on your XP Dell and compare them to the settings on your newer PC to ascertain whether there's any difference.
    While you may not be able to search for driver updates on the newer pc, you can use your Dell's XP pc for that purpose.
    Good luck.

  • Personas rotator doesn't work with firefox ver 10.0.2

    I am running firefox 10.0.2 and I downloaded personas plus and also personas rotator and tried to get rotator to work. I think I have a newer ver of firefox and don't know how to get it to work.

    hello, firefox 10.0.2 is an outdated version of the browser - please [[Update Firefox to the latest version|update firefox]]!
    personas rotator should work with the new version. in case you're having problems please consult the description of the addon at [https://addons.mozilla.org/firefox/addon/personas-rotator/#addon-description].

  • Restore Firefox bookmark backup doesn´t work (with firefox backup tool 1.0) Help :-(

    Hello, i have a big problem with restoring my Firefox bookmarks and passwords with " Firefox Backup Tool" Its a "....fbk" file.
    My laptop had some problems so i made a new system set up. Backup with "Mozbackup" didn´t work.( Error message) so i used "Firefox Backup Tool 1.0" for backup all my bookmarks. The program said "backup succesful" and i got a 12mb ..fbk file. But when i tried restoring it, it says "restore successful" but there is nothing in Firefox when i start the program and look for the bookmarks. :-( I tried it over 10 times and older versions.. Firefox 23 or 3.6 etc.... nothing works.
    Can someone help me to get my bookmarks back? Or can i open the jpk file manually and copy it in firefox?
    thanks.
    Anna

    Try open the file with NotePad
    Click on the file with right mouse button then click on "open with" and select "notepad"

Maybe you are looking for