I have an image called 'search_button.gif' and I want that image to act like a form and redirect it to 'search.cgi' just like using a <form action>. Anybody know how I can treat an image like form buttons? Thanks for reading.
Assuming you mean you want the image to function as a submit button on a form that 'search.cgi' is design to process:
<form action="search.cgi" method="post" name="dosomething">
...other input fields...
<input type="image" src="search_button.gif">
</form>
I've found the image type to in some cases be some what restricting. you may also want to keep in mind that with the use of onClick="myForm.submit()" you can make any object a submitable button for a form.
and if you really want to have fun with your friends. use a input text with a onClick to submit the form ---------------------------------------
{ str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee"alert(Nstr); }
---------------------------------------
for the best results to your questions: FAQ333-2924
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.