Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



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

Posts: 76
Location: Dublin, Ireland
Trades: 0
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
 
 
Register now for full access!
Old 02-11-2003, 02:28 PM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
- Everything a webmaster needs - for free

Please login or register to view this content. Registration is FREE
- Free web hosts reviewed and rated

Please login or register to view this content. Registration is FREE
- Impartial hosting directory - Add your host today for FREE
david is offline
View Public Profile
 
Closed Thread     « Reply to onSubmit Javascript function linking to confirmation page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.66295 seconds with 12 queries