This will close the current window. However, if JavaScript did not create
the window, the client will receive a JavaScript prompt. I've added a button
which can be used to redirect the window to another page without submitting
the form. This is only supported in newer browsers (4+). You may just want
to embed another form for this if you want to support older browsers.
<form action="Some.cfm" method="post">
<input type="text">
<input type="submit" value="Save">
<input type="button" value="Close"
onClick="window.close()">
<input type="button" value="Cancel"
onClick="window.location='SomeOtherPage.cfm'">
</form>
Benjamin S. Rogers
Web Developer, c4.net
voice: (508) 240-0051
fax: (508) 240-0057
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.