I am wanting to submit a form's hidden values with a script. I wrote a function: function send(){ form_name.submit() }
Then I put onUnLoad="send()" in the BODY tag and it doesn't give the desired results.
I need to post the values in the hidden fields to any page's link in my site that is clicked. My objective is to let the page forward the fields to the next page without the user having to click a submit button.
Member subscribes to this thread with a verified email.
Old Account!
If this is your account, sign in to activate web presence data (sign in quarterly to keep active). Alternatively, you can subscribe to our monthly eMag with a valid email address.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html,
social networking links, message board signature, company profile, etc.
To prevent code from being translated to HTML, you treat it the same way you would when displaying HTML code from within a HTML page. For example, to display <HTML> you enter an ampersand (&) followed by lt; then enter "HTML" and finally, another ampersand (&) followed by gt;. So the text to enter would be:
& lt;HTML& gt;
but without the spaces. The "lt" stands for "Less Than" and the "gt" stands for "Greater Than".
So the code in the preceeding message should appear as follows:
<html> <script language="JavaScript"> function send() { alert("enter the onunload function"); document.forms[0].submit(); } </script>
<body onunload="send()"> <p>exit page to test onunload. <p> <a href=javascript.document.forms[0].submit()">Manual Submit</a>