N
Notgiven
This works:
<input type="button" value="Add to list" onClick="addOption(param1,
param2);">
But this doesn't:
<img src="images/add.gif" onClick="addOption(param1, param2);">
The error I get using the img tag is, "this.form has no properties". Yet it
is right beside the input tag that does work with the same OnClick= params
This doesn't work either:
<input type="image" src="images/add.gif" value="Add to list"
onClick="addOption(param1, param2);">
The error I get with this is that it does the javascript action then Submits
the form - I do not want it to submit, just do the javascript action.
What can I do to get a graphic button that will complete the javascript
action?
Thanks!
<input type="button" value="Add to list" onClick="addOption(param1,
param2);">
But this doesn't:
<img src="images/add.gif" onClick="addOption(param1, param2);">
The error I get using the img tag is, "this.form has no properties". Yet it
is right beside the input tag that does work with the same OnClick= params
This doesn't work either:
<input type="image" src="images/add.gif" value="Add to list"
onClick="addOption(param1, param2);">
The error I get with this is that it does the javascript action then Submits
the form - I do not want it to submit, just do the javascript action.
What can I do to get a graphic button that will complete the javascript
action?
Thanks!