No, the link will take precedence over the onClick.  Since the form never
gets submitted, no form variables will be created.  If you want a regular
anchor to trigger the form submit, then use this instead:
<a href="javascript:document.formname.submit()">Submit</a>.

----------
Billy Cravens
[EMAIL PROTECTED]


----- Original Message -----
From: "Miriam Hirschman" <[EMAIL PROTECTED]>
To: "CF Forum" <[EMAIL PROTECTED]>
Sent: Monday, April 17, 2000 2:06 PM
Subject: When are Form Variables created


HI,

Are Form variables created, by calling the submit method using
JavaScript,like in the code below??


<a href="ActionAddNewUser.cfm" onClick="submit();">Submit</a>
Thanks,

---miriam


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to