<! DOCTYPE html>Baidu a bit</a> <!--onclick = ' return false ', click Not to jump--<script type= "Text/javascript" >//Auxiliary Functions varAddloadevent =function(func) {varOldonload =window.onload; //Save the existing, if there is already if(typeofWindow.onload!== ' function ') {window.onload=func; } Else{window.onload=function() {oldonload (); Func (); }}} addloadevent (Preparelinks); //Main function functionpreparelinks () {//It is expressed here as var preparelinks = function () {, the function is invalid, so it does not run??? if(!document.getelementsbytagname)return false; varLinks =document.getelementsbytagname (' a '); for(vari = 0; i < links.length; i++) { if(Links[i].getattribute (' class ') = = ' Popup ') { //contains a judgment on the existence of ' popup 'Links[i].onclick =function(){ returnPopUp ( This. getattribute ("href"))?false:true; //return!popup (This.getattribute ("href")); } } } } //Click the link does not jump page, pop-up window varPopUp =function(Winurl) {window.open (Winurl,"Popup", "Resizable,scrollbars,status"); return true; } //if the popUp is changed to the following, click on the link to open the New tab page in the same window //var popUp = function (winurl) { //window.open (winurl, ' _blank '); //return true; // }</script> </body>windows open Pop-up window and the same window opens a new tab page