how to open links in current window, new window, background.
1 2 function open2(url, opt){ 3 if (opt == 0) // current window 4 window.location = url; 5 else if (opt == 1) // new window 6 window.open(url); 7 else if (opt == 2) // background window 8 {window.open(url); self.focus();} 9 }