We Recommend

Smalltalk, Objects, and Design Smalltalk, Objects, and Design
This reference and text treats the Smalltalk programming system and the web of object-oriented ideas within and around it. Thus it is more than a guide to the language; it also examines Smalltalk in its technical and historical setting, and along the way addresses the questions that every Smalltalk developer sooner or later naturally wonders about.


Posted By

hellion on 03/11/08


Tagged

javascript window popup open snippet onclick aptana


Versions (?)


Aptana Snippet: Javascript popup window


Published in: Other 


Use this snippet to quickly insert onclick="window.open();" into your HTML...


Snippets can save you time and hassle of typing out bits of code that you frequently use by adding them into your files by simply double-clicking the name of the Snippet. http://www.aptana.com/docs/index.php/AboutAptanaSnippets

Sometimes it's useful to add a popup to your pages. When the user clicks on a link, a new window opens and displays a page. http://www.quirksmode.org/js/popup.html

  1. <!--
  2. category: HTML
  3. name: Onclick Popup
  4. toolTip: Onclick Popup
  5. prompt(href): Enter the HREF URL
  6. prompt(width): Enter the popup Width
  7. prompt(height): Enter the poup Height
  8. -->
  9. onclick="window.open('${href}', '_blank', 'width=${width},height=${height},scrollbars=yes,status=yes,resizable=yes,screenx=0,screeny=0');"

Report this snippet 

You need to login to post a comment.