Just wondering if there is a way to get a HTML element to link to a location without wrapping it in an
tag?
Bu
You can make it a non-submitting button () and hook something like
window.location = 'http://where.you.want/to/go'
into its onclick handler. This does not work without javascript enabled though.
Or you can make it a submit button, and do a redirect on the server, although this obviously requires some kind of server-side logic, but the upside is that is doesn't require javascript.
(actually, forget the second solution - if you can't use a form, the submit button is out)