Mike088 Posted February 11, 2009 Share Posted February 11, 2009 Hey everyone, I've noticed some php coded web pages in which when you hover over a link there is nothing displayed in the browsers status area along with right clicking on the link will not show a properties selection in the menu... How is this accomplished? Any help would be much appreciated Link to comment https://forums.phpfreaks.com/topic/144744-how-to-hide-url-links/ Share on other sites More sharing options...
RichardRotterdam Posted February 11, 2009 Share Posted February 11, 2009 It could be a javascript link if the href attribute is empty then nothing is shown. However it's unadvisable for normal links. If the browser doesn't support javascript the website is useless. Link to comment https://forums.phpfreaks.com/topic/144744-how-to-hide-url-links/#findComment-759517 Share on other sites More sharing options...
gethinw Posted February 11, 2009 Share Posted February 11, 2009 I suspect it's probably done with css, and the link isn't actually a link as in an 'a' tag, but a 'span' or similar element with style="cursor:pointer" attribute (or similar in a separate stylesheet) to give a 'hand' cursor when hovering over it, and an onclick event triggering some javascript so it does something when you click it. Nothing to do with php at all really I'm afraid! Link to comment https://forums.phpfreaks.com/topic/144744-how-to-hide-url-links/#findComment-759536 Share on other sites More sharing options...
killah Posted February 11, 2009 Share Posted February 11, 2009 Really easy: <span onClick="document.location='New url'"> Link to comment https://forums.phpfreaks.com/topic/144744-how-to-hide-url-links/#findComment-759561 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.