Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submit Button

Status
Not open for further replies.

dom24

Programmer
Aug 5, 2004
218
GB
Is there a way of just have a text link as a submit button rather than an image?
I want to submit a page but I don't really want a button to appear, just highlighted text.

Thanks.
 
You could do it with Javascript, but it's not entirely reliable. A more sneaky way would be to style the button to look like text:
Code:
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
  <title>Is This a Button?</title>
  <style type="text/css">
      .submit {
         border: 0;
         color: blue;
         background-color: white;
         text-decoration: underline;
      }

  </style>
</head>
<body>
   <form>
     <input class="submit" type="submit" value="Click Me" />
   </form>
</body>
</html>


-- Chris Hunt
 
chris:
ur method is also not that safe (Mozilla lower versions would ignore them)

dom:
<a href="javascript:document.FormName.submit()">Submit</a>

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top