Forum Moderators: open

Message Too Old, No Replies

Can a form button be replaced with a text link?

or should I fake it with graphics?

         

GuanoLad

12:20 am on Apr 29, 2003 (gmt 0)

10+ Year Member



I need to make a couple of links lok like they're part of the text, like an ordinary clickable link, but they're form buttons only. Is there a way for me to do it with text?

If not, I'll just fake it with graphics that look like text, probably.

marcs

12:35 am on Apr 29, 2003 (gmt 0)

10+ Year Member



You could do this with JavaScript. Use the 'onclick' event to trigger a document.your_form_name.submit()

That way you can use a <A HREF....>...</A> type setup to do a form submit.

grahamstewart

12:37 am on Apr 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could use CSS to style the button so that it looks like normal text.

e.g.

input.textbutton {
border:0;
padding:0;
color: inherit;
background:transparent;
}

GuanoLad

1:15 am on Apr 29, 2003 (gmt 0)

10+ Year Member



Ooh. Sounds good. Thanks guys!