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
<button onClick=""></button>
thanks
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?
That may or may not work for you – I give no warranties…
As for <button>, I think it’s fine in XHTML. However, if you’re using this as a link, I wouldn’t use <button> at all, and just apply CSS to a normal link – that way it’ll work with people without JavaScript or who don’t support <button>. Oh, normal <a> links are also more accessible and search engines can follow better, too.
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…
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… ;))