redemption — 2002-05-17T01:05:49-04:00 — #1
how can i make a button which directs to a particular URL upon clicking it?
this is what i have so far, which is amazingly pathetic
and can anyone tell me if i should use the <button>... i think i've read somewhere that this is deprecated in XHMTL 1.0 and will be removed in the next spec... is that right?
ian_glass — 2002-05-17T01:19:29-04:00 — #2
That may or may not work for you -- I give no warranties...
redemption — 2002-05-17T14:43:39-04:00 — #3
i'm using a button because it's to complement a Submit button... i figured it'd be more consistent that way... could you suggest a better way? using a normal hyperlink (anchor tag) wouldn't really fit in beside the Submit button (at least to me it looks weird)... and search-engine spidering (?) is not an issue because it's an Intranet app...
skunk — 2002-05-17T14:51:23-04:00 — #4
you can "fake" a button with CSS. Gives this a go:
border: medium outset #ff0000;
<a href="bwaf.html" class="fakebutton">Fake Button</a>
Tested on Mozilla but I didn't get time to test it in IE. Tweak for best effect
creole — 2002-05-17T18:29:30-04:00 — #5
Works in IE 5.5. It's ugly though.
skunk — 2002-05-17T19:01:23-04:00 — #6
Here's a prettier one (tweaked and checked in IE6):
border: 2px outset #cccccc;
border: 2px inset #cccccc;
aljapaco — 2002-05-18T06:44:25-04:00 — #7
geeze.. all that code...
use a form instead with hidden fields!
gekofish — 2002-05-18T06:49:03-04:00 — #8
just use this:
redemption — 2002-05-18T12:49:20-04:00 — #9
Originally posted by AljapaCo
[B]geeze.. all that code...
use a form instead with hidden fields! [/B]
that won't work because i need the button for hyperlinking... what good is a hidden field to me
and thanks skunk for all that help... really appreciate it :)... i'm thinking Ian's should work best though i haven't tried it (i'm not willing to do it now... must wait till workday... )