karlosantana
Dec 31 2007, 03:23 PM
So i was looking for a feedback form in javascript and i couldn't find one so ive made one for you guys here we go! So this feedback form will ask for name, emails address and their comments First of all add this code in between the <head> and </head> tags CODE <script name="JavaScript"> <!-- function SendEmail() { var toaddy = 'name@domain.com'; var subject = 'JS Form Submission'; var mailer = 'mailto:' + toaddy + '?subject=' + subject + '&body=' + 'Name%20is\n\t' + document.jsform.visitorname.value + '\n\n' + 'Email%20is\n\t' + document.jsform.email.value + '\n\n' + 'Message:\n\n' + document.jsform.message.value + '\n\n'; parent.location = mailer; } // --> </script> Thats the base of it if you havn't got that in it wont work The next bit goes in between <body> and </body> tags in the position you want it CODE <form name="jsform"> <table><tr> <td align="right">Name:</td> <td><input name="visitorname" size="27"></td> </tr><tr> <td align="right">Email:</td> <td><input name="email" size="27"></td> </tr><tr> <td colspan="2"> Your message:<br> <textarea name="message" cols="31" rows="6" wrap="soft"> </textarea> <center> <p> <input type="submit" onClick="SendEmail()" value="Send Message"> </center> </td> </tr></table> </form> And thats it thats all you need! you can customize colours etc. Hope this helps
Reply
Liam_CF
Jan 1 2008, 12:25 PM
Thanks a lot for this, will use on my website.
Reply
MiniK
Jan 1 2008, 02:05 PM
Hang on, doesn't this just open an email window with the preloaded content?
Reply
Liam_CF
Jan 1 2008, 02:20 PM
I would have thought it was a send email online form type thing.
Reply
karlosantana
Jan 9 2008, 02:45 PM
Yep it does it sends the whole form to the email address you put in it doesn't open up any other screens programs or whatever! its really good actually i use it myself! enjoy using it! im glad it has helped people!
Reply
GaiaZone
Jan 9 2008, 11:15 PM
Oh, this is great. It's far shorter than the PHP script I did for sending feedbacks, and it doesn't take two different pages. Thanks for this, the only thing I'd have to add is a security feature to avoid bulk spams. =]
Reply
hitmanblood
Jan 9 2008, 11:26 PM
Well, javascripts are nice however I have found out and this is not the big secret they are making your site run slower that is in some cases when there is real exess of the javascript usage on the page then it is running slowly and may even slower your browser even on the strongest computers. I do not have anything against your script I am certian that is it working all right however there is problem with javascript and I don't like it. P.S. I will stick to the php.
Reply
Recent Queries:--
javascript for feed back form - 8.28 hr back. (1)
-
javascript feedback form - 41.43 hr back. (2)
Similar Topics
Keywords : add, javascript, feedback, form, web, page
- Javascript Conflict
JScrollpane & Lightwindow / Lightbox (1)
Accessing Mysql From Javascript
Javascript to communicate with database (4) I found a nice program which allows you to put quizzes on your web site. You can design your own
questions, set the layout of your page, and there is also a possibility of having the results
emailed to you. It further offers a facility to store the results and all that, all you have to do
is put a link in the program, telling it which page takes care of that. However, when I look at the
HTML code the program generates, I see that most of it is written in Javascript. Obviously, it also
uses variable names, but as I don't know any Java, I was wondering if those variab....
Feedback/pm System [resolved]
(6) Hi, guys. I have a problem. I was constructing a webpage that absolutely needs a working feedback/PM
system (preferably with the ability to send the same PM to multiple people in the same time).
Everything was going allright, but then I decided to delete the mandatory security code from PM
field - just to make life simpler for the site users. In that case when I try to send a PM it shows
an error: - not all fields are filled in - security code is wrong What can you advice me to change
to make it work? (This is urgent, I really need the website totally operating by Mond....
Web Page Tree Menu: Style Sheet - Javascript
(5) I got bored and lazy working on the things that I should do... so I end up creating this tree menu
for anyone to use if they find it interesting. Well the idea is to create a tree menu in a webage.
Instead of those linear menu it would be better to add more dynamic to your webpage with a tree
menu. Others use image rollovers. As expecte the tree menu should behave like the one in Windows
Explorer. When you click a node depending on its state it will pull down or pull up its chlid nodes.
I have achieved by exploiting one style sheet property, display . Basically this s....
How To Create Html Feedback Form
(3) Hello... I want to know a very simple thing...For example i want to add a simple HTML form on my
website ,.for example , something like User Name (text box) User Email: (text box) COmments (text
box) Submit form Reset Form Just like that, so that when user click on UBMIT form, button, it
takes all the inputs from the above boxes and sends to a pre defined email adress.and on submitting
it shows a new thanks page. Well..there are some forms when you fll everything, they open ur default
mailbox and then send etc etc i want that to send direct (i.e. without opening the ....
Help Required Regarding Adding Javascript In A Web
Info. (2) Hey...I have a java code of RSS feeds.When i put it in my website , on front page,and when i
preview,there is blank place (where news should be) and there is a yellow bar on internet
explorer..there is a message.. "To Help protect your security,Internet explorer has resticted this
file from showing active content that could access your computer.Click here for more options" And
when i click to that bar, there is option "ALOW BLOCKED CONTENT" THen it shows those news. I am
very upset.Because i dont want that bar.Can you please help me by telling the way , that there comes....
How To Put Javascript And Css In Dreamweaver
(9) HI, If anybody worked with dreamweaver, and succesfully used JS codes and CSS in their website,
please reply and tell me how to, cause when I try too put Javascripts it won't work....I also
tried to put an textarea with scrollbars in a table...put in design view the content won't stay
in the widths and heights I typt in...can someone help? thanks ....
Help With Javascript
(3) Anybody want to point me to a good javascript tutorial. Thanks.....
Excellent Site For Javascript Tools
(8) This is the best source for Javascript tools. http://www.codebrain.com/ ....
Javascript resources?
ie, a book. (-1)
Looking for add, javascript, feedback, form, web, page
|
|
Searching Video's for add, javascript, feedback, form, web, page
|
advertisement
|
|