window.html 531 B

1234567891011121314151617181920212223242526
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <script>
  5. function newPopup(url, title) {
  6. popupWindow = window.open(
  7. url, title,'height=100,width=200,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes'
  8. );
  9. }
  10. </script>
  11. <a href="popup1.html" onclick="newPopup(this.href, 'popup_1'); return false;">
  12. Popup #1
  13. </a>
  14. <a href="popup2.html" onclick="newPopup(this.href, 'popup_2'); return false;">
  15. Popup #2
  16. </a>
  17. <div id="text">
  18. Main window div text
  19. </div>
  20. </body>
  21. </html>