Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
在 Safari 上的 window.onbeforeunload
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
gugod  
View profile  
 More options Dec 21 2007, 2:25 am
From: gugod <gugod...@gmail.com>
Date: Thu, 20 Dec 2007 23:25:05 -0800 (PST)
Local: Fri, Dec 21 2007 2:25 am
Subject: 在 Safari 上的 window.onbeforeunload
onbeforeunload 在 Safari 上的行為不太一樣。IE 與 Firefox 需要設置 event.returnValue ,但
在  Safari 上的需要傳回它:

window.onbeforeunload  = function(event) {
    if (!event) event = window.event; // for IE

    var message = "You have something unsaved.";

    if (is_safari) {
        return message;
    }

    event.returnValue = message;


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bananasims@gmail.com  
View profile   Translate to Translated (View Original)
 More options Dec 31 2007, 9:14 am
From: "bananas...@gmail.com" <bananas...@gmail.com>
Date: Mon, 31 Dec 2007 06:14:11 -0800 (PST)
Local: Mon, Dec 31 2007 9:14 am
Subject: Re: 在 Safari 上的 window.onbeforeunload
除 Opera 外, 我測試過 return 已經可以

On 12月21日, 下午3時25分, gugod <gugod...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google