Command button links

T

Tykee

I am attempting to set up a web page of links, but I want to use command
buttons rather than text or image links.

The simplist way to do this, I would of thought, was this .....

<A HREF="http://www.google.co.uk">
<button><b>google.</b></button> </a>

i.e., open the link, then place the button, and then close the link.
However, it don't work.

Can anyone give me an idea if this is possible - and if so, how to do it?

Thanks,

T.
 
W

William Tasso

Tykee said:
I am attempting to set up a web page of links, but I want to use
command buttons rather than text or image links.

The simplist way to do this, I would of thought, was this .....

<A HREF="http://www.google.co.uk">
<button><b>google.</b></button> </a>

i.e., open the link, then place the button, and then close the link.
However, it don't work.

because you just made it up.
Can anyone give me an idea if this is possible - and if so, how to do
it?
<A HREF="http://www.example.com"> <img src="button.gif" alt="link to:
example.com"> </a>
 
V

viza

and then Tykee said:
Thanks, but I don't want an image or a standard txt file. I'm after a
command button.

The <button> code does work in IE4 + .

Well it shouldn't. IE is (yet again) not doing it right. This is not what
buttons are for.

You have two options:

1) Misuse a button as follows, probably with no side effects to most users
but buggering up search engines and other stuff that you don't know about:

<form style="display:inline" action="linked-page.html"><input type="submit"
value="Button Text"></form>

Make sure you don't specify a name on the submit.

2) Use a (suprise suprise) link(!) to link two pages, and make it look like
a button:

<a href="linked-page.html"
style="color:ButtonText;background:ButtonFace;border:eek:utset">Button Text</a>

This might not be exactly like a button in IE, but you can play around with
the CSS a lot, for example by adding padding, and you can even add
class="button" and use


a.button:active {
border:inset;
}

have fun!
 
S

Sam Hughes

I am attempting to set up a web page of links, but I want to use command
buttons rather than text or image links.

That is simply a bad idea. Start wanting something else.

Please see <http://www.cs.tut.fi/~jkorpela/www/links.html>

Specifically, go to <http://www.cs.tut.fi/~jkorpela/www/links.html#forms>

Buttons do not look like links. Another downside is that they are not
links. Would Google, for instance, follow them? Also, when the mouse
hovers over a button, the URL to which the button points will not appear in
the status bar. Which is a usability issue. Plus, buttons make users
think they are submitting a form. In addition to that, they might get
warnings about unencrypted transmission.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top