PC Review


Reply
Thread Tools Rate Thread

disable button when leaving page

 
 
Anonymous
Guest
Posts: n/a
 
      2nd Aug 2008
Which is the correct approach to disable buttons when leaving an aspnet
page?

Currently I have the following html, which disables buttons when pressing F5
in FireFox, which ofcourse can occur before leaving the page.

<html>
<body onbeforeunload="document.getElementsByTagName( 'input' )[0].disabled =
true">
<form name="form1" method="post" action="Default.aspx" id="form1">
<input type="submit" name="Button1" value="With FireFox, this button gets
disabled when pressing F5. Not so in IE." id="Button1" />
</form>
</body>
</html>


 
Reply With Quote
 
 
 
 
Munna
Guest
Posts: n/a
 
      3rd Aug 2008
Hi,

Exactly what are you trying to accomplish here?

Regards

Munna
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable page up button? =?Utf-8?B?VEM=?= Microsoft Powerpoint 1 20th Mar 2007 07:25 AM
Disable page break preview button Frederik Vanderhaegen Microsoft Excel Programming 0 21st Dec 2004 03:15 PM
Disable Page Break Preview Button John Salig Microsoft Excel Programming 1 10th Feb 2004 10:19 AM
How do disable button selection on a page. Lily Microsoft ASP .NET 4 7th Jan 2004 06:18 PM
How do disable button selection on a page. Lily Microsoft ASP .NET 4 7th Jan 2004 02:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:04 PM.