Print Page | Close Window

graying out submit button

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=7913
Printed Date: 01 April 2026 at 1:00am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: graying out submit button
Posted By: cuedog
Subject: graying out submit button
Date Posted: 07 December 2003 at 1:58am
Is there a way to gray out the submit button once it is pressed to prevent a double submission?

-------------
http://www.512ryders.com - 512 Ryders



Replies:
Posted By: Scotty32
Date Posted: 07 December 2003 at 2:52am

<form name="formname">

<input type="submit" name="submit" value="Submit" onClick="document.formname.submit.disabled=true">

</form>

there you go

i acctually took it from this exact page (cept borg does it a lil more advanced)

by the way... the above code i did is a javascript.... not an ASP script

so you acctually posted in the wrong forum



-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: pmormr
Date Posted: 07 December 2003 at 12:31pm
wwf doesn't have a javascript forum

-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net