Specials | Announcements | Contact | Site Map
Willmaster.com
Hijack-proof forms. Surveys. List building.

Solid, safe website tools.

Whatever your need, Will Bontrager builds powerful software solutions.

Affiliate Cookie Setter
Search WillMaster.com:

WillMaster > Support > CGI Q&A

If you don't find the answer to your question in these archives, ask your CGI question at the Current Master Series CGI Forum.

2 onClick functions?

Author Message
23Aug01

russell
Subject: 2 onClick functions?

Hi,

If I am validating a form AND preventing multiple clicks, is the following code correct?

Thanks.

27Aug01

Will
In response to: 2 onClick functions?

Russell, only one onClick="___" can be used with certainty.

The way to do what you're trying to do is to include one of the functions in the other. Then, use only one onClick.

In your above example, your count() function could include the line

ValidateAll();

Then you only need the one onClick statement:

onClick="return count()"