Here’s a neat bit of code that, when embedded in a webpage, will pop all links into a new window when the form box is checked:
<script language="JavaScript"><!-- // thanks to randomwalks.com for this code function targetLinks(boNew) { if (boNew) where = "_blank"; else where = "_self"; for (var i=0; i< =(document.links.length-1); i++) { document.links[i].target = where; } } // --> </script> <form name="targeter"> <input type="checkbox" name="targetbox" id="tcheck" onclick="targetLinks(this.checked);"> <label for="tcheck"> Check box to open links in a new window </label> </form> </>