Copy and paste this code into your HTML document.
Change the words "My Window" to your desired button name after inserting this code into your HTML document:
" + " <INPUT TYPE=\"BUTTON\" VALUE=\"My Window\" " + "onClick=\"window.open(\'" + document.popup.url.value + "\',\'" + document.popup.id.value + "\',\'width=" + document.popup.width.value + ",height=" + document.popup.height.value + ",directories=" + RadioValue("directories") + ",location=" + RadioValue("location") + ",menubar=" + RadioValue("menubar") + ",scrollbars=" + RadioValue("scrollbars") + ",status=" + RadioValue("status") + ",toolbar=" + RadioValue("toolbar") + ",resizable=" + RadioValue("resizable") + ",left=" + document.popup.left.value + ",top=" + document.popup.top.value + ",screenX=" + document.popup.screenx.value + ",screenY=" + document.popup.screeny.value + "\')\;return false\"" + "><\/TT><\/font><\/strong><\/P>";
popWin = window.open("","","width=450,height=250,scrollbars=yes,menubar=yes");
popWin.document.write(code);
popWin.document.close();
}
function preIt() {
var code = " Press the "My Window" button below to test your created Pop-up Window: " + " <\/TT><\/font><\/strong><\/P>";
popWin = window.open("","","width=450,height=250,scrollbars=yes,menubar=yes");
popWin.document.write(code);
popWin.document.close();
}
//-->
Test for your Pop-up Window
" + "Pop-up Window Generator