Is javascript <div> connection acceptable?
I want to link the whole <div>, but CSS2 does not support adding href to a div (or span, for that matter). My solution is to use the onClick property to add the link. Is this acceptable for modern browsers?
Code example:
<div class="frommage_box" id="about_frommage" onclick="location.href='#';">
<div class="frommage_textbox" id="ft_1"><p>who is Hawk Design?</p></div>
My test page is at http://www.designbyhawk.com/pixel . Updated daily.
Thanks for the help.
+3