Forums

This topic is locked

form Cancel button

Posted 08 Mar 2005 22:34:02
1
has voted
08 Mar 2005 22:34:02 Chris Charlton posted:
I've been working on a site that has a lot of forms, and I wanted to get the opinion of my fellow DMXzoners about making a <b>Cancel button</b> that's usually next to the submit button.

I've always depended on JS (JavaScript) to handle the cancel button by using this line of code:
<pre id=code><font face=courier size=2 id=code>&lt;input type="button" name="btnCancel" value="Cancel" onclick="window.location('some_page.htm')" /&gt;</font id=code></pre id=code>

Anyone have a non-JS dependant idea, or any other JS code snippet they'd like to share? <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> Can't wait to hear everyones thoughts on this technique. <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>

Replies

Replied 19 Apr 2006 00:04:34
19 Apr 2006 00:04:34 dick plaus replied:
To be perfectly honest... you could just use a simple POST command to call a cancel, and redirect.

Personally, I like your way better.

Reply to this topic