On Saturday 29 March 2003 19:23, Barbie [home] wrote: > closer, but still not quite. > > Both miss one minor detail. document.forms[0].submit() is a function not a > variable. Miss those parentheses off and you'll be going nowhere. However, > with the <input type=submit> button, it will automatically submit the form > it's associated with, in order to differentiate between different submit > buttons, you'll need to name the buttons and check to see whether the > button.x or button.y co-ordinates have been set. If you wanted to have an > image as a button the following could also be done: > > <a href="javascript:document.forms[0].submit()"><img src="myimgae.png"
for added fun .. wrap your clicky image or submit button in <NOSCRIPT> tags .. that way JS enabled browsers get the joy of changing and submitting, non JS enabled browsers (or ones with JS turned off) get a button to click ... -- Robin Szemeti Redpoint Consulting Limited Real Solutions For A Virtual World