Harry
03-21-2004, 05:33 PM
I am trying to pass a parameter to a function using 'onclick()'.
when I try onclick="resetColors(p_01)", i get an error message saying 'p_01 is not defined'.
when I try onclick="resetColors('p_01')", i get an error message saying 'syntax error'.
I am trying to send the parameter as the page number I am calling the resetColors() function from.
Please help. I have looked at several examples in the forum but still can't figure it out. Nothing I have tried so far works.
Thank you.
when I try onclick="resetColors(p_01)", i get an error message saying 'p_01 is not defined'.
when I try onclick="resetColors('p_01')", i get an error message saying 'syntax error'.
I am trying to send the parameter as the page number I am calling the resetColors() function from.
Please help. I have looked at several examples in the forum but still can't figure it out. Nothing I have tried so far works.
Thank you.