Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onLoad, and onChange

Status
Not open for further replies.

schroom

Programmer
Joined
Oct 25, 2001
Messages
4
Location
CA
I have the following code as an onChange, and would like to also have it as onLoad
as onChange it is:
onChange="return (isAgeAtRetirement(this, termDtYr, termDtMn, termDtDy)

and trying as onLoad:
... isAgeAtRetirement(termDtYr, termDtMn, termDtDy, 20000);">

which gives the following error: termDtYr is undefined

Why is this and how would I fix it??
 
We need to look at the code to see why this might happen...can you post a URL??
BTW, why would you want to call the same script as onLoad and onChange?? I have not failed; I merely found 100,000 different ways of not succeding...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top