Post: how to add a link to a button
06-01-2011, 02:49 PM #1
joshblake8808
Super Premium
(adsbygoogle = window.adsbygoogle || []).push({}); so i started making a website and i want to add buttons to

but i want the buttons to go to a link

does anyone know how to do that
(adsbygoogle = window.adsbygoogle || []).push({});
06-01-2011, 03:31 PM #2
<Jimbo>
</Jimbo>
There are a few ways.

1)
    <a href="**LINK**"><img src="**LINK TO IMAGE OF BUTTON**" style="width: 173px; border: medium none;" alt="**Discription**"></a>
< That is html 4.0 strict valid.

Or the XHTML 1.0 strict way is to use CSS to do it...
    button.theme_link {
background: transparent url(LINK TO BUTTON IMAGE) no-repeat 0 0;
}
< CSS

    <button type="button" name="button" class="theme_link" onclick="**link**">**WORDS ON BUTTON**</button>


Simple. Smile

---------- Post added at 04:31 PM ---------- Previous post was at 04:30 PM ----------

Quote Gasp ooops
Originally posted by joshblake8808 View Post
so i started making a website and i want to add buttons to

but i want the buttons to go to a link

does anyone know how to do that

The following user thanked <Jimbo> for this useful post:

joshblake8808

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo