Free-Webmaster-Tools.com is a collection of tools for your web development needs and insightful articles and tips.

JavaScript Mouseover - Hiding affiliate URL

Ever want to hide links on your website (especially affiliate links)?

This method shown below, simply changes the way the URL appears in the browser's status bar. (That's the bar at the bottom left corner of your browser that tells you the URL of links, which file(s) it's downloading, etc.



A simple "MouseOver" javascript code does the trick nicely. Here's an example... If your real affiliate URL is:
"https://www.someurl.com?affiliateid=29013", you could use this code:


Now, when someone places their mouse over your link, instead of seeing your real affiliate link in their status bar, they'll see whatever you place in the code's "window.status=" line, which, presumably, is the websites main URL WITHOUT your affiliate code.



 

 

Top of Page. Free-Webmaster-Tools.com is a collection of tools for your web development needs and insightful articles and tips.