That's a good question. I'm not sure what is the answer. I'll do some poking around and get back to you if I bump into an useful answer. You should email the people at iPage as they probably could assist you..
OnClick="submit();" will submit the form without firing a.
Event - it's not the same as the submit() method of the form object. Also: using '<input type=image' will send an extra pair of name/value pairs along to the server (the x/y coordinates of the click on the image). And 'name=submit' is a bad idea as well....
Otherwise, great advice.....
Great advice when it apparently is all wrong.
Thanks for correcting me _mrkite, but how would it be for an image? if you don't mind, just to set me straight...
<form name="thisForm" .........
Thanks guys, that cleared a few things up..
So if I'ed included the form name it would have worked? correct..
When you give a form a name (or an image, Netscape 4 Layer, some other elements) an additional reference (pointer) to the form object that represents that form is exposed (made available for scripting purposes). Since you can also get references to.
Forms in the page via the.
Collection - an array - this additional reference is provided as a convenience, so you won't need to use.
, e.g., to find the fourth form in the source code..
Is a lot easier to follow (you can also use.
Or - in Internet Explorer -.
(the last by also setting an.
) or - well, you get the picture. First - find the object (that represents the element), the do something with it..
If you know this already, apologies....
Thanks _mrkite, that was very informational. I knew some of it but not in that way. you the man thanks....
Err....there is such a tag as <button> but I'm not sure what browsers and browser versions support it, although IE seems to support it at least as early as version 4..
Its pretty cool in that you can insert HTML code into a button that is not possible with the regular submit, reset buttons..
<font color=red size=7>this is a big button</font>.
<img src="reset.gif" ALIGN=middle><font color=red size=3>Reset</font>.
I was gonna say that myself Kevin.. as I'd seen that in action..
What I'm wondering is...you ccan change the font color, but what about the actual button color?..
To change the color of a button use CSS:.
<input type=submit style="background:blue;">.
There are many more style attributes you can use to change the appearance of buttons..