Advertisement

04.13.2007 at 10:05AM PDT, ID: 22510148
[x]
Attachment Details

onbeforeunload+firefox+headache

Asked by dimante in Scripting Languages, JavaScript

Tags: onbeforeunload, firefox

I am trying to get firefox to fire an event with the onbeforeunload event and it is not working:


Here is the code:

<script language="javascript">

if (window.Event) {
    window.onbeforeunload = function(event) {
        return busyBox.Show(event); // pass argument event block
    }
} else {
    window.onbeforeunload = function() {
        return busyBox.Show(event); // pass IE's global event block
    }
}

</script>

In IE the event fires, iframe window shows up.  Firefox is a no go.  Can anyone help?

-D-

Start Free Trial
[+][-]04.13.2007 at 10:25AM PDT, ID: 18907154

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.13.2007 at 10:49AM PDT, ID: 18907321

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.13.2007 at 12:04PM PDT, ID: 18907807

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.13.2007 at 12:13PM PDT, ID: 18907857

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Scripting Languages, JavaScript
Tags: onbeforeunload, firefox
Sign Up Now!
Solution Provided By: stanscott2
Participating Experts: 1
Solution Grade: B
 
 
[+][-]04.13.2007 at 12:34PM PDT, ID: 18907992

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.13.2007 at 12:36PM PDT, ID: 18908003

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.16.2007 at 10:29AM PDT, ID: 18919295

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.16.2007 at 11:56AM PDT, ID: 18919917

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32