Better off doing it like this:
<script language="JavaScript">
<!--
function submitForm() {
document.haselect.xxx.value = "Please Wait...";
document.haselect.xxx.disabled = "disabled";
return true;
}
//-->
</script>
<FORM name="select" action="index.cfm" method="post"
onsubmit="submitForm();">
<INPUT name="xxx" type=submit value="NEXT >>">
> -----Original Message-----
> From: Tim Blair [mailto:[EMAIL PROTECTED]
> Sent: 22 January 2004 16:04
> To: [EMAIL PROTECTED]
> Subject: [ cf-dev ] OT: JS disable submit button on click
>
>
> Question:
>
> Will anything go horribly wrong in any browser if I stick this in a
> <input type="submit"> button to stop someone clicking twice:
>
> onclick="this.disabled=true;this.form.submit();"
>
> Like, will anything disable the form and not submit etc?
>
> Tim.
>
> -------------------------------------------------------
> Try the ColdFusion Coding Contest! Current contest:
> Maze Solver - http://tech.badpen.com/cfcontest/
> -------------------------------------------------------
> RAWNET LTD - Internet, New Media and ebusiness Gurus.
> WE'VE MOVED - for our new address, please visit our
> website at http://www.rawnet.com/ or call us any time
> on 0800 294 24 24.
> -------------------------------------------------------
> This message may contain information which is legally
> privileged and/or confidential. If you are not the
> intended recipient, you are hereby notified that any
> unauthorised disclosure, copying, distribution or use
> of this information is strictly prohibited. Such
> notification notwithstanding, any comments, opinions,
> information or conclusions expressed in this message
> are those of the originator, not of rawnet limited,
> unless otherwise explicitly and independently indicated
> by an authorised representative of rawnet limited.
> -------------------------------------------------------
>
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>
>
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]