HOME
            About US
            Contact Us
            Fun Games

HTML Popup
HTML PopupHTML Popup

Chapter - 11 : Using Additional Frames / Windows (HTML Popup): (Page 4/6)


(Cotinued from previous page)

11.3 - Pop Up Window: A pop up window is nothing but, opening of a new web page in a new window. This is basically used to display additional information about a topic, if visitor desires. The automatic popup is frequently used to display advertisements. A new window can be open with the 'Link' tag as explained in the 'Chapter 8'. However, the pop up commands has some advantage and disadvantage compared to Link Command.

The advantage of popup is that it gives to complete freedom for size, scroll bar display, window resizing, status bar display etc. The biggest disadvantage of Popup is that to avoid unwanted advertisements, many visitors have installed "pop up blocker". This software prevents all pop ups. The popup can be inserted by using 'JavaScript' or without 'JavaScript' and furthermore, it can be automatic popup or popup by click.

11.3.1 - Popup by click: When a visitor clicks a text / image, the popup window will be displayed. The same can be doe by following methods- i) Method - 1: In this method all the required command are written at one place in the 'body' tag at required place. This gives complete freedom for defining each popup layout separately.

Let us say, you are having a web page of your product and you want a popup for the price list and the URL for price list is 'price.html'


Command: <a href="HTML Popup"onClick="MyWindow=window.open('price.html','MyWindow','toolbar=no, location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no, width=250, height=250'); return false;">Price List</a>
OR
<a href="HTML Popup"onClick="MyWindow=window.open('price.html','MyWindow','toolbar=0, location=0,directories=0,status=0, menubar=0,scrollbars=0,resizable=0, width=250, height=250'); return false;">Price List</a>


(Cont......... to next page (Pg-5))

© funandhobby.com (HTML Popup)