verdrm Posted July 6, 2009 Share Posted July 6, 2009 I need to apply a "rel" tag to a div Javascript link. A regular link would look like this for my code: <a href="images/imagename.jpg" title="" class="thickbox" rel="gallery-name"> ...but I need to make a div a link: <div onclick=""></div> How do I convert that link into a div link with the rel tag? Link to comment https://forums.phpfreaks.com/topic/164963-rel-tag-javascript-link/ Share on other sites More sharing options...
haku Posted July 7, 2009 Share Posted July 7, 2009 Divs aren't links. You can simulate a link by using javascript to redirect the user somewhere when the div is clicked on, but the div still won't actually be a link. Link to comment https://forums.phpfreaks.com/topic/164963-rel-tag-javascript-link/#findComment-870147 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.