I am a newbie to javascript. I work for an academic institution that can't really afford to hire real programmers so they are asking us to do our best. I manage a large site (5000+ pages).
Recently, one of the "higher-ups" decided that we should have a notification BEFORE someone clicks a link that exits our domain.
The simplest method I could think of was to add a tooltip to all our external links.
The problem is that I do not have the time or the man power to edit all of those links. What I would like to do is have a bit of javascript that could dynamically add a tooltip to all of the anchor tags that link to something other than our domain WITHOUT needing to manually add anything to the HTML tags themselves.
All of my attempts at writing a script for this have failed miserably. I have found little on the web that helped. Most scripts I have found seem to add fancy divs and such. I would like to simply add "title="This link will take you outside of the **** Website" to all external links.
Any ideas? Thanks!!!
Recently, one of the "higher-ups" decided that we should have a notification BEFORE someone clicks a link that exits our domain.
The simplest method I could think of was to add a tooltip to all our external links.
The problem is that I do not have the time or the man power to edit all of those links. What I would like to do is have a bit of javascript that could dynamically add a tooltip to all of the anchor tags that link to something other than our domain WITHOUT needing to manually add anything to the HTML tags themselves.
All of my attempts at writing a script for this have failed miserably. I have found little on the web that helped. Most scripts I have found seem to add fancy divs and such. I would like to simply add "title="This link will take you outside of the **** Website" to all external links.
Any ideas? Thanks!!!