Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CODE FOR FILE a.htm
- ---------------------------------------------------------------------------------------------
- <html>
- <head>
- <script type="text/javascript" src="window_manager.js"></script>
- <script type="text/javascript">
- function init(){
- // give this window a unique name
- window.name='A';
- // just outright opening them now for demo purposes. How/when you open them is up to you
- // open window B
- openWindow('b.htm', 'B', '');
- // open window C
- openWindow('c.htm', 'C', '');
- }
- </script>
- </head>
- <body onload="init();">
- This is window A
- </body>
- </html>
- ---------------------------------------------------------------------------------------------
- CODE FOR FILE b.htm
- ---------------------------------------------------------------------------------------------
- <html>
- <head>
- <script type="text/javascript" src="window_manager.js"></script>
- <script type="text/javascript">
- function init(){
- // give this window a unique name
- window.name='B';
- // just outright opening them now for demo purposes. How/when you open them is up to you
- // open window D
- openWindow('d.htm', 'D', '');
- }
- </script>
- </head>
- <body onload="init();">
- This is window B
- </body>
- </html>
- ---------------------------------------------------------------------------------------------
- CODE FOR FILE c.htm
- ---------------------------------------------------------------------------------------------
- <html>
- <head>
- <script type="text/javascript" src="window_manager.js"></script>
- <script type="text/javascript">
- function init(){
- // give this window a unique name
- window.name='C';
- }
- </script>
- </head>
- <body onload="init();">
- This is window C
- </body>
- </html>
- ---------------------------------------------------------------------------------------------
- CODE FOR FILE d.htm
- ---------------------------------------------------------------------------------------------
- <html>
- <head>
- <script type="text/javascript" src="window_manager.js"></script>
- <script type="text/javascript">
- function init(){
- // give this window a unique name
- window.name='D';
- // is window C open?
- alert('Is Window C open? '+ is_window_open('C', true) );
- }
- </script>
- </head>
- <body onload="init();">
- This is window D
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement