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ā¦ ;))