PlEASE HELP EASY QUESTION: unload event is not firing at all.

Hi, onUnload event is not firing in Safari browser. I tried with different ways to capture that event but i failed to capture that event. So please help me on this, give suggestions to capture that event. Or any other event is firing when window is closing. Actually, i need to execute when window is closing. But in Safari the window is closing without firing of any events.

Safari doesn't execute the unLoad action when closing windows, period!
It only executes it when loading another page.
I might be wrong but I think Safari doesn't allow you to close a window with Javascript at all. All close events are blocked.
Maybe a SWF file can do it somehow. But I'm not sure...

Similar Messages

  • Please help! MBP 15" 2011 will not boot at all

    Hi,
    My 15 inch early (May) mbp 2011 will not start up. Here is what I have observed so far:
    1) When power button is pushed (without MagSafe attached) hard drive will spin up and about after 3-5 seconds it will turn off (hard drive spins Down, no further boot process) No chime, no led indicator light in front.
    2) When power button is pushed (with MagSafe attached) hard drive spins up, keeps spinning, but no further boot process. Just black screen and spinning hard drive.
    3) When attempting SMC reset, fans turn to high, and screen remains black, still no boot)
    4) Since mbp fails before booting, PRAM/NRAM resetting is not a possibility. (Tried)
    5) I have also removed the battery cable from the logic board, and tried resetting without any luck.
    6) I entered CD into optical drive - it "ate" it, but will not eject now. (Tried holding eject/left mouse/control e etc) still nothing.
    7) After letting mbp rest for 1 day, it booted fine like nothing happend, worked fine for 1 day, then next morning back to square one. Now 5 days later still nothing.
    If anybody has any ideas what could be wrong, or have possible solutions, please don't hesitate.
    Thanks in advance, Oliver

    Hey there Oliverkehn,
    It sounds like your computer is not booting up at all at this point, even after some very thorough troubleshooting you've already done. From the following article, I would use these steps that I don't mention as having been tried just yet:
    Troubleshooting: My computer won't turn on
    http://support.apple.com/kb/ts1367
    Note: See Apple Portables: Troubleshooting MagSafe adapters for further troubleshooting with MagSafe adapters.
    Disconnect all accessories that are plugged in to the computer, such as a printer, hub, or other mobile device.
    If your Mac supports user-installable memory, solid state drive, or hard drive, and you recently installed any of these, make sure they are installed correctly and are compatible with your computer. If possible, reinstall the original memory or drive into the computer to find out if the behavior persists afterwards.
    MacBook Pro: How to remove or install memory
    MacBook: How to remove or install memory
    Mac Pro: How to remove or install memory
    Mac mini: How to remove or install memory
    iMac (27-inch, Late 2012): Installing or replacing memory
    iMac: How to remove or install memory
    If you are still unable to start up your computer after trying each of these steps, visit an Apple Store or Apple Authorized Service Provider (AASP) for further diagnosis. If you plan to visit an Apple Retail Store, make a reservation at the Genius Bar using http://www.apple.com/retail/geniusbar/ (available in some countries only).Note: Diagnostic fees may apply for issues not covered under warranty or the AppleCare Protection Plan (APP).
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • Please help me my apple id its not working what do i do?

    please help me my apple id is not working what do i do

    If you desire speedy resolution it helps to be more specific with error messages etc. when asking a question here.
    iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html > Get iTunes support via Express Lane > iTunes > iTunes Store

  • I have worked many hours on an iphoto book and I am up to page 29.  I cannot add any more pages and I need to!  Please help!!  "Add page" is not working!!!

    I have worked many hours on an iphoto book and I am up to page 29.  I cannot add any more pages past that and I need to!  Please help!!  "Add page" is not working!!!

    Fixed it thanks to similar questions and answers to them.  Thanks all!

  • When i search for a website it takes me to another website.  I will click on the link and it takes me to one ive never wanted?  please help very frustrating!  I am not very computer savy, is it my settings or something?  Jen

    When I search for a website it itakes me to another website.  I will click on a link and it takes me to something completely different or yellow pages etc. Please help I am very frustrated and not very computer savy!  Thanks!  Jen

    Hi Jeff I have uninstalled Muse from my applications and have tried to download the new version but it displays a message 'file not found'. I have included a screenshot.

  • Please help. My facebook app will not open on my iphone 4. I deleted it,numerous times and downloaded it again. It uploads, but when you click on the icon, it flickers then closes.  Help.

    Please help. My facebook app will not open on my iphone 4. I deleted it,numerous times and downloaded it again. It uploads, but when you click on the icon, it flickers then closes.
    Help.

    Then the next step would be to restore your phone.  My advice is that prior to restoring you import your photos and videos to your computer and back up your contacts (by syncing them with iCloud or to a supported program on your computer using iTunes) as a number of users report losing these when restoring their device.

  • HT4759 Please help me. My Apple id not be used in iCloud. After sign in, to iCloud, I have error massage: This Apple ID cannot be used to sign in to iCloud. Create a new Apple ID or sign in with a different one.

    Please help me. My Apple id not be used in iCloud. After sign in, to iCloud, I have error massage: This Apple ID cannot be used to sign in to iCloud. Create a new Apple ID or sign in with a different one.

    For whatever reasons, the "None" option is not always available to all users and I think it may be related to what country you live in. Short of contacting Apple to get it straightened out, if you haven't done anything with your new ID ye - you can create an Apple ID without a credit card and simply abandon the one that you just created.
    This explains how you can creaet an ID without a credit card.
    http://support.apple.com/kb/HT2534
    The two big things that you have to remember for this to work are ... you have to sign out of your existing Apple ID .... Settings>Store>Apple ID - tap the ID and sign out. Then you have to try to download a free app to bring up the window that asks you to sign in or create an ID. Read the information on the website that I referenced above.
    If you have not used the original Apple ID for anything yet, you can simply ignore it and use the new one - or like I said earlier - contact iTunes support and ask them to help you sort it out.
    Here is a link to iTunes support. You can change the country in the bottom right corner of the screen.
    http://www.apple.com/support/itunes/contact/

  • Hi. installed mountain lion. Not Happy. How do i revert to Lion. thanks. Please Help., Hi. installed mountain lion. Not Happy. How do i revert to Lion. thanks. Please Help.

    Hi. installed mountain lion. Not Happy. How do i revert to Lion. thanks. Please Help., Hi. installed mountain lion. Not Happy. How do i revert to Lion. thanks. Please Help.

    Only way is if you made a backup of your system before you installed Mt Lion.
    Or if your system came with Lion Pre-Installed you boot to the online recovery system, Hold down Command+option+r at startup until you see a spinning globe in the center of the screen.

  • Hello. Please help. for unknow reasons, I am not getting any of my mail on anything, nothing on my iphone, my outlook or even when I log into icloud online ???   any one else having troble??   please help   I need my mail

    Hello. Please help. for unknow reasons, I am not getting any of my mail on anything, nothing on my iphone, my outlook or even when I log into icloud online>???
    any one else having troble??
    please help
    I need my mail

    Hello, DragonStudios. 
    Thank you for visiting Apple Support Communities.
    Here are a couple troubleshooting resources I would recommend when experiencing issues with iCloud Mail.
    iCloud: Troubleshooting iCloud Mail
    http://support.apple.com/kb/TS4002
    iCloud: Account troubleshooting
    http://support.apple.com/kb/TS3988
    Cheers,
    Jason H.

  • Please help! My iPhone 4s will not let me slide wifi from off to no"

    Please help! My iPhone 4s will not let me slide wifi from off to no"

    http://support.apple.com/kb/ts1559

  • Please help! My iPhone 4s will not let me slide from off to no

    Please help! My iPhone 4s will not let me slide from off to no

    try this:
    Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for phone to restart (no data will be lost).

  • Please help! I just sync my notes to icloud of my ipad mini but after that all notes has been covered by iphone's and all notes are missing from iPad,how could i restore it?

    Please help! I just sync my notes to icloud of my ipad mini but after that all notes has been covered by iphone's and all notes are missing from iPad,how could i restore it?

    It's very possible that you did just as you suspect. One of the later Note file over wrote the one stored on your iPad when you synced.
    When one does a sync of their iPad a backup of the iPad is created first. If that backup was still available you might be able to find the Note file there. But more than likely, if you are letting the iPad and iPhones sync on their own over Wi-Fi you have over written that back up as well.

  • My phone ran out of battery as it was updating to iOS 6. Now it is having trouble rebooting. The silver apple logo keeps showing up and fading away. And doing it all over again... What should I do PLEASE help!! My phone is NOT jailbroken.

    my phone ran out of battery as it was updating to iOS 6. Now it is having trouble rebooting. The silver apple logo keeps showing up and fading away. And doing it all over again... What should I do PLEASE help!! My phone is NOT jailbroken.

    I should mention, it was on low power as I was using it.

  • I have an IPhone operating OS 4.21. I cannot back it up before update and I cannot set up an ICloud account as it needs to be on a version later on the device. Please help, I want to update but not lose everything!

    I have an IPhone operating OS 4.21. I cannot back it up before update and I cannot set up an ICloud account as it needs to be on a version later on the device. Please help, I want to update but not lose everything!

    SorchaH wrote:
    I receive an error "Itunes cannot back up the IPhone because the back up cannot be saved on the computer".. So I tried to download and log into ICLoud but need to do this from my device..
    That would tend to indicate a permissions issues on the computer.
    Running an outdated version of iTunes is of absolutely no benefit.
    All iDevices work with the current version of iTunes.

  • Please Help! Drag and drop does not work in Adobe AIR 3.1 (FlashBuilder 4.6)

    I am working on a PC is made of air and flashbuilder 4.6.
    Drag and drop application does not work in Flash Builder 4.6.
    However, the same source will work with Flash Builder 4.5.
    Please help me.
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                  xmlns:s="library://ns.adobe.com/flex/spark"
                                  xmlns:mx="library://ns.adobe.com/flex/mx"
                                  backgroundColor="#323232" width="100%" height="100%"
                                  initialize="init(event)"
                                  nativeDragEnter="onDragEnter(event)"
                                  nativeDragDrop="onDragDrop(event)">
              <fx:Script>
              <![CDATA[
                        import mx.events.FlexEvent;
                        protected function init(event:FlexEvent):void
                                  addEventListener(NativeDragEvent.NATIVE_DRAG_ENTER, onDragEnter);
                                  addEventListener(NativeDragEvent.NATIVE_DRAG_DROP, onDragDrop);
                        private function onDragEnter(event:NativeDragEvent):void
                                  if (event.clipboard.hasFormat(ClipboardFormats.FILE_LIST_FORMAT))
                                            NativeDragManager.acceptDragDrop(this);
                        private function onDragDrop(event:NativeDragEvent):void
                                  var arr:Array;
                                  arr = Array(event.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT));
                                  startImage.source = (arr[0] as File).url;
                ]]>
              </fx:Script>
              <s:layout>
                        <s:VerticalLayout/>
              </s:layout>
              <s:BorderContainer id="bc" borderStyle="solid" width="200" height="80%"/>
              <s:Image id="startImage" width="100%" height="100%"
                                             horizontalAlign="center" verticalAlign="middle"/>
      </s:WindowedApplication>

    Thank you answers, but it was not the answer I wanted.
    [Problem]
    * Flash Builder 4.5.1(updater) or Flash Builder 4.6
    - If you have installed on pc, does not work adobe air drag and drop
    [Solution]
    1. Reinstalling the Windows 7 (32bit).
    2. Install Flash Builder 4.5.
    3. Flash Builder 4.5.1 updater and Flash Builder 4.6 does not install.
       (Instead of using Flex SDK 4.6 is set up)
    In addition, Windows7 64bit environment does not work drag and drop.
    Is there another solution?

Maybe you are looking for

  • Problem with VS2012 and Sharepoint 2013 Solution

    Hello everyone I've got a problem that's driving me crazy. I'm migrating a Sharepoint 2010/Visual Studio 2010 Solution to Sharepoint 2013/visual Studio 2012 with the developer tools. My solution consists of 3 class libraries (common, data access laye

  • Mac crashes adobe acrobat 9.0 constantly

    Hello! I constantly have the adobe acrobat 9.0 crashing on my IMac at work. We have purchased CS5 and I have spoken with an Adobe rep who insists that the issue is Mac related and has nothing to do with them. Before I can even get ready to print or v

  • Same no ranges for both Billing doc and Accounting Documents

    Hi friends, My client requirement is he want to use same number ranges for both billing document and accounting document. Is it possible? Regards Sasi

  • How to change code in MV50AFZZ

    HI, i want change the code in Include MV50AFZZ (FORM USEREXIT_LGORT_DETERMINATION). this include is provided for user exits. can any one please help me how to change the code in this Include and what are the necessary actions i need to take.

  • What is the order of starting the services?

    Hi, I have 2 node RAC with ASM. what is the order of starting the services like crs, asm,nodeapps, db, ,listener? can you help me? Thanks