esempio perfezionato e fuso
codice:// code author Luca Mascaro (www.next-design.net) // gestione link function intercetta() { for (var i=0; i<document.links.length; i++) { var anchor = document.links[i]; if (anchor.className!="open") { anchor.target="_top"; } } for (var i=0; i<document.links.length; i++) { var anchor = document.links[i]; if (anchor.className=="open") { anchor.target="_blank"; if (anchor.title) anchor.title += " [Il link apre una nuova finestra]"; if (!anchor.title) anchor.title = "Il link apre una nuova finestra"; } } } window.onload = intercetta;