How to disable or hide the Open In New Tab option for hyperlinks

<a href=”http://google.com”>Click</a> var links = document.getElementsByTagName(“a”); for(var i=0; i<links.length; i++){ links[i].setAttribute(“data-href”, links[i].getAttribute(“href”)); links[i].removeAttribute(“href”); links[i].onclick = function(){ window.location = this.getAttribute(“data-href”); }; }   a { color:blue; text-decoration:underline; cursor:pointer; } ===================================================== <html> <head> <script type=”text/javascript”> function disableTab() { var links = document.getElementsByTagName(“a”); Read More …

JavaScript Cotations

================================================================== ================================================================== Avoid blinking, if possible – it annoys people. But you can do it with JS/jQuery like this: setInterval(jQuery(‘.blinking’).toggle, 1500 ); That’ll show/hide anything with the blinking class every 1.5 seconds. So in the HTML you would do: <span Read More …