1addEvent(window, 'load', externalLinks); 2 3function addEvent(obj, evType, fn) 4{ 5 if (obj.addEventListener) 6 { 7 obj.addEventListener(evType, fn, true); 8 return true; 9 } 10 else if (obj.attachEvent) 11 { 12 var r = obj.attachEvent("on"+evType, fn); 13 return r; 14 } 15 else 16 { 17 return false; 18 } 19} 20 21 22function externalLinks() 23{ 24 if (!document.getElementsByTagName) return; 25 var anchors = document.getElementsByTagName("a"); 26 for (var i=0; i<anchors.length; i++) 27 { 28 var anchor = anchors[i]; 29 if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") 30 { 31 anchor.target = "_blank"; 32 } 33 } 34}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.