Pop-up HTML pages - HTML links Lesson 2 - Guide to HTML, XHTML Guide

Change Font Size: / / Directory List

19.4. Pop-up HTML pages

Speaking in front of a page of links are carried out. Doing so has two advantages.

  • Reservations navigation information - using the browser (IE, Firefox, etc.) visit the website, you can use the keyboard (backspace key or Alt + left arrow keys) back operation, the use of shortcut (Shift + backspace key or Alt + Right key) operation forward. users to browse navigation information to be retained.
  • Respect for the rights of users - no unauthorized site designer and the right of a page pops up (if you want, and can fully Right click on the links - choose - to open a new window, or press Shift click on the link, open new window.)

Therefore w3 standards reject the link labels target ="..." attributes (target ="..." attributes can have a very simple pop-up page).

According to the standard, if very much like to use the pop-up pages can be completed with the use of javascript, and to prompt the user to use the title attribute.

Example

  <script Type = "text/javascript" /> function popup () (window.open ( "http://www.nt22.com/about.html", "", "toolbar = no, height = 300, width = 500 "); return false;) </ script> <a title = "return popup()" "popup" onclick => Help me </ a> 

Examples of HTML pages pop up

Extended reading

HTML a label