function KKPopup(Popup_width, Popup_height, right, bottom){
var left = screen.width-Popup_width-right;
var top = screen.height-Popup_height-bottom;
var navegador = navigator.appName
if (navegador == "Microsoft Internet Explorer") {
self.resizeTo(Popup_width,Popup_height);
self.moveTo(left,top);
}else{
window.resizeTo(Popup_width,Popup_height);
window.moveTo(left,top);
}
}
onLoad="KKPopup(500,295,40,100)"
หรือ
function KKPopup(pageURL, Popup_width, Popup_height, right, bottom){
var navegador = navigator.appName
if (navegador == "Microsoft Internet Explorer") {
self.blur();
self.moveTo(10000,10000);
//self.resizeTo(1,1);
self.blur();
}else{
window.blur();
window.moveTo(10000,10000);
//window.resizeTo(1,1);
window.blur();
window.stop();
}
var left = screen.width-Popup_width-right;
var top = screen.height-Popup_height-bottom;
var targetWin = window.open (pageURL,'_blank','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=' Popup_width ', height=' Popup_height ', top=' top ', left=' left);
}