hi... i am using this code of Mr. Khalid... but, being a newbie, am unable to use it to replace the popup with my desired file... please help!
function openWin(url) {
var popupWin=window.open("main2.htm","popupWin","scrollbars=no,locationbars=no");
winW = (document.all)?screen.width:window.screen.availWidth;
winH = (document.all)?screen.height:window.screen.availHeight;
myTitle = "Khalid Ali's Popup window."
popupWin.document.write('<title>'+myTitle+'</title>');
popupWin.document.open();
popupWin.document.write("<br>Auto Generated Window<br><a href=http://www.webdeveloper.com/forum/archive/index.php/\"javascript:self.close()\">Close me</a>");
popupWin.document.close();
popupWin.resizeTo(winW,winH);
popupWin.moveTo(0,0);
closeMe();
}
function closeMe() {
window.opener = top;
window.close();
}
function openWin(url) {
var popupWin=window.open("main2.htm","popupWin","scrollbars=no,locationbars=no");
winW = (document.all)?screen.width:window.screen.availWidth;
winH = (document.all)?screen.height:window.screen.availHeight;
myTitle = "Khalid Ali's Popup window."
popupWin.document.write('<title>'+myTitle+'</title>');
popupWin.document.open();
popupWin.document.write("<br>Auto Generated Window<br><a href=http://www.webdeveloper.com/forum/archive/index.php/\"javascript:self.close()\">Close me</a>");
popupWin.document.close();
popupWin.resizeTo(winW,winH);
popupWin.moveTo(0,0);
closeMe();
}
function closeMe() {
window.opener = top;
window.close();
}