joseph Posted May 14, 2007 Share Posted May 14, 2007 I have a javascript that will display a tooltip whenever it finds a link (e.g. <a href="...">...</a>) in a page. But I want to disable it on some parts of the <a href=""> ... </a> tags. Any suggestions? Link to comment https://forums.phpfreaks.com/topic/51252-solved-how-to-disable-javascripts-in-certain-html-tags-or-divs/ Share on other sites More sharing options...
emehrkay Posted May 14, 2007 Share Posted May 14, 2007 use the rel attribute <a href="" rel="tooltip"></a> in your js, check the a for rel == "tooltip" befoe you display the tool tip or you can give you links a certain class <a href="" class="tooltip"></a> then check for class, etc Link to comment https://forums.phpfreaks.com/topic/51252-solved-how-to-disable-javascripts-in-certain-html-tags-or-divs/#findComment-252719 Share on other sites More sharing options...
joseph Posted May 15, 2007 Author Share Posted May 15, 2007 Thanks I used the window.onload function so that I can use the tooltips inside the div tags window.onload=function(){activateTooltips("ToolTips")}; Link to comment https://forums.phpfreaks.com/topic/51252-solved-how-to-disable-javascripts-in-certain-html-tags-or-divs/#findComment-253273 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.