Hola I am trying to detect all attempts at exit from my webpage, I want to pull in the url of a clicked link into a variable, run some string detection commands to see if it is the link im looking for, and then redirect it if it is. Can this be done?
with jQuery lib I would try this $(document).ready(function(){ // onlick on any link $("a").click(function(){ // save href attribute in clicked_url var clicked_url = $(this).attr("href"); // then run the check on clicked_url variable and redirect }); }); Code (javascript):
No, it won't work. Because Flash linking is managed inside Flash player and then direct to the browser.