To create popup window:
window.open('mywin.htm','name','height=255,width=250,
toolbar=no,directories=no,status=no,menubar=no,
scrollbars=no,resizable=no');
window.open('mywin.htm','name','height=255,width=250,
or
TheNewWin = window.open('','name','height=255,width=250,
The second parameter (in bold) gives the popup window a name. If there exists a window with the same name already opened, then the popup window will be reused.
No comments:
Post a Comment