Thu Sep 15, 2011 10:40 pm
<html>
<head>Open popup</head>
<body>
<script lanuage="JavaScript" type="text/Javascript">
// Open new window
function OpenWindow(){
// setting a new window paramter
/*
- url to open
address of page to open in the new window.
- window name
window title.
Control Attributes
-width=number
window width
-height=number
window height
-resizable=yes or no
window is resizable (true /false)
-scrollbars=yes or no
enable scroll bars (true/false)
-toolbar=yes or no
navigation toolbar (true/false)
-location=yes or no
show location text filed (true/false)
-directories=yes or no
show extra buttons (true/false)
-status=yes or no
show or not the window status bar(true/false)
-menubar=yes or no
show menubar or not (true/false)
-copyhistory=yes or no
copy the navigation history from base window to new window (true/false)
*/
popupWindow= window.open("close.html","Pop Up", "toolbar=no,width=400,"+
"height=200,toolbar=yes,location=yes,directories=yes"+
",status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes");
popupWindow.focus()
}
</script>
<input type="button" onclick="javascript:OpenWindow()" value="open new window" />
</body>
</html>
<FORM>
<INPUT type="button" value="close" onClick="window.close()">
</FORM>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.