<html> <head> <script type="text/javascript"> var window_new = null; function NewWindow() { window_new = window.open('http://vnfree.net', 'vnfree', 'width=500,height=300,top=100,left=400,scrollbars=yes'); return false; } function closeWindow(){ window_new.close(); return false; } </script> </head> <body> <button type="button" onclick="NewWindow()">Mở cửa sổ</button> <button type="button" onclick="closeWindow()">Đóng cửa sổ</button> </body> </html>