JAVASCRIPT - Popup windows example


SUBMITTED BY: efbee

DATE: Oct. 4, 2016, 11:02 p.m.

FORMAT: JavaScript

SIZE: 517 Bytes

HITS: 931

  1. <script type="text/javascript">
  2. // Popup window code
  3. function newPopup(url) {
  4. popupWindow = window.open(
  5. url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
  6. }
  7. </script>
  8. <p>Popup Window:</p>
  9. <p><a href="JavaScript:newPopup('http://www.quackit.com/html/codes/');">Get your HTML codes in a popup!</a></p>
  10. <div class="more-info">
  11. <p>More info: <a href="/javascript/popup_windows.cfm">Popup Windows</a></p>
  12. </div>

comments powered by Disqus