01.
<html>
02.
<head>
03.
<title>ThaiCreate.Com Tutorial</title>
04.
</head>
05.
<body>
06.
<script language=
"JavaScript"
>
07.
function
windowOpen() {
08.
var
myWindow=window.open(
'popup_send_data2.html'
,
'windowRef'
,
'width=200,height=200'
);
09.
if
(!myWindow.opener) myWindow.opener = self;
10.
}
11.
</script>
12.
<form name=
"frmMain"
method=
"post"
action=
""
>
13.
<input type=
"text"
value=
""
name=
"txtVol"
id=
"txtVol"
>
14.
<input name=
"openPopup"
type=
"button"
id=
"openPopup"
onClick=
"Javascript:windowOpen();"
value=
"Get Value"
>
15.
</form>
16.
</body>
17.
</html>