Closed Thread
onSubmit Javascript function linking to confirmation page
Old 02-11-2003, 07:07 AM onSubmit Javascript function linking to confirmation page
Damascus's Avatar
Skilled Talker

Posts: 76
Location: Dublin, Ireland
hi guys,
I need a simple javascript that will allow the 'Submit' button on a simple html form I've created to redirect the user to a confirmation, 'thank you' type html page. It's a simple form submission; submit button's current form action is to mailto: a particular address which is what I want but I also want clicking this 'submit' button to link to another html confirmation page as outlined above i.e. 'Thank you for submitting your details...etc.'

probably simple enough to do, I have an idea that it's a straightforward enough onSubmit() or onClick() function but thought I'd ask you guys in case you have something readymade that I can use (will display original script author in my code of course).

many thanks if you can help with this
cheers,
Damascus.
__________________
"When it became customary to add quotes to the end of posts, Damascus cursed his lack of imagination."
Damascus is offline
View Public Profile
 
When You Register, These Ads Go Away!
Old 02-11-2003, 01:28 PM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Without testing, I would assume it was:
Code:
onSubmit(document.location="new page location";);
Thats just an educated guess, though.

Personally, I wouldn't recommend using mailto for a form anyway. Scripts to process them are far more powerful, secure and reliable.
__________________
Free Webmaster Help - Everything a webmaster needs - for free
Free-Webhosting.info - Free web hosts reviewed and rated
Web Hosting Hunt - Impartial hosting directory - Add your host today for FREE
david is offline
View Public Profile Visit david's homepage!
 
Closed Thread     « Reply to onSubmit Javascript function linking to confirmation page
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.09317 seconds with 12 queries