01.
<html>
02.
<head>
03.
<title>ThaiCreate.Com Tutorial</title>
04.
<script language=
"JavaScript"
>
05.
function
fncOpenPopup()
06.
{
07.
window.open(
'popup2.html'
,
'popup-name'
,
'width=700,height=500,toolbar=0, menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=0,top=0'
);
08.
}
09.
</script>
10.
</head>
11.
<body>
12.
<form name=
"frmMain"
action=
""
method=
"post"
>
13.
<input type=
"button"
name=
"btnOpen"
value=
"OpenPopup"
OnClick=
"fncOpenPopup();"
>
14.
</form>
15.
</body>
16.
</html>