Click to See Complete Forum and Search --> : please helllllp! input types


kung-fu-monkey
03-31-2003, 10:17 AM
ok here is part of my code for my search engine i was wondering whether anyone could help me, all i want to do is rather than have an image button, or a dull submit button what i want is a link just a plain old link to do the action (which i have highlighted in bold below!) my normal image button does: please help!


<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script LANGUAGE="JavaScript" src="searchfunc.js"> </script>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<FORM name=formSear action="javascript:RunSearch()" method="POST">
<p align="middle">
<input name=searWords size="10" >
<input type="IMAGE" src="_gif/search.gif" alt="Search this site" border="0" width="45" height="16" name="Send">
</FORM>
</body>
</html>

havik
03-31-2003, 10:21 AM
<input type="IMAGE" src="_gif/search.gif" alt="Search this site" border="0" width="45" height="16" name="Send" onclick="document.formSear.submit()">

that should work

Havik

Ice3T
03-31-2003, 04:39 PM
<FORM name=formSear action="java script:RunSearch()" method="POST">
<p align="middle">
<input name=searWords size="10" >
</FORM>
<a href="javascript:void(0)" onClick="document.formSear.submit()">link</A>

I think this is what your looking for?
It's not an image button, or a dull submit button, just a plain old link to do the action.