i looking create button @ bottom of form create alert box show form data entered. form includes: first name last name address 1 address 2 city state zip phone fax
once form completed, button clicked , alert box pops showing form data entered.
does know how accomplish without form being submitted or validated? there no database form data submitted to, there no database pull information from.
any appreciated.
i have not included form code due length, current code working alert box looks this:
<script> function display_alert() { alert(""); } </script> <body> <input type="button" onclick="display_alert()" value="display alert box"> </body>
if right need this:
<html> <head> <script type="text/javascript"> window.onload = function(){ document.getelementbyid('send').onclick = function(e){ alert(document.getelementbyid("name").value); return false; } } </script> </head> <body> <form method="post"> <input type="text" name="name" id="name" /> <input type="submit" name="send" id="send" value="send" /> </form> </body> </html>
i don't mean database pull information from, example uses click event data form field , shows in alert without submit.
Comments
Post a Comment