Category: 

What Is an HTML Popup?

Article Details
  • Written By: Eugene P.
  • Edited By: Angela B.
  • Last Modified Date: 03 September 2016
  • Copyright Protected:
    2003-2016
    Conjecture Corporation
  • Print this Article
Free Widgets for your Site/Blog
The atmosphere of Jupiter's moon Io collapses every time it is eclipsed by the planet.   more...

September 29 ,  2008 :  The Dow Jones Industrial Average experienced its largest one-day drop in history.  more...

A popup when using HyperText Markup Language (HTML) is a separate display window that opens independently of the web page being viewed. There are a number of factors that can affect how, when and even if an HTML popup is displayed, although the default behavior of a web browser usually is to create a separate window that has only a title bar and frame, excluding toolbars or other navigation elements the browser normally would show. The HTML popup originally was designed as a way for a website to display information about some item on a page without leaving the page from which the popup originated. The mechanism for an HTML popup can be exploited for malicious purposes, so many web browsers provide features that prevent popup windows from appearing, making them a difficult navigational tool to employ in some cases.

Ad

One of the easiest ways to generate an HTML popup is to set the target frame for a standard anchor link to the value "blank". This means that, instead of causing the web browser to load the HTML document into a frame within the current page layout, a new browser window will be created and the page loaded into that new window. Using a blank frame to generate an HTML popup is a simple way to allow a user to view large images by clicking on a thumbnail, load a multimedia file such as a video, or to see the definition of a word without forcing a separate page to load in the current window. Using a blank frame does not provide a great amount of control over how the popup window will appear when generated.

A more common method used to invoke an HTML popup is to employ JavaScript®. Using the scripting language, a new window can be created in response to some user input, such as clicking on a link or passing over a link. The size and components of the window being created also can be controlled so it more neatly frames and displays the information it contains.

There are some problems that can be encountered when using an HTML popup on a website. The most common is that browsers can prevent a popup from appearing as a solution to the risk of their being used for malicious attacks or other purposes. A related complication is that some browsers will show errors if an HTML popup attempts to load a document on a separate server, usually for security purposes. In some situations, certain features of a popup window might not be implemented identically in all browsers, possibly causing the code for the window to be disregarded.

Ad

You might also Like

Recommended

Discuss this Article

Post your comments

exception 'Exception' with message 'error writing captcha: Duplicate entry '2147483647' for key 'PRIMARY'' in /ssd/www/wisegeek/public_html/_core/classes/public/Captcha.php:44
Stack trace:
#0 /ssd/www/wisegeek/public_html/_core/controls/public/ControlDiscussionPostBox.php(324): Captcha->createCaptcha()
#1 /ssd/www/wisegeek/public_html/framework/classes/Control.php(104): ControlDiscussionPostBox->preRender(false)
#2 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): Control->render()
#3 /ssd/www/wisegeek/public_html/tpl/default-nocustom-lu/pages/public/article/article.htm(526): Control->__toString()
#4 /ssd/www/wisegeek/public_html/framework/classes/Control.php(300): require('/ssd/www/wisege...')
#5 /ssd/www/wisegeek/public_html/framework/classes/Control.php(309): Control->requireTpl('pages/public/ar...', Object(PageArticleCom), true)
#6 /ssd/www/wisegeek/public_html/framework/classes/Control.php(131): Control->renderTpl('pages/public/ar...', Object(PageArticleCom))
#7 /ssd/www/wisegeek/public_html/framework/classes/FormDataControl.php(87): Control->renderTemplate()
#8 /ssd/www/wisegeek/public_html/framework/classes/Control.php(109): FormDataControl->renderTemplate()
#9 /ssd/www/wisegeek/public_html/framework/classes/ScriptPage.php(50): Control->render(false)
#10 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): ScriptPage->render()
#11 /ssd/www/wisegeek/public_html/framework/classes/Page.php(97): Control->__toString()
#12 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(443): Page->processRequest()
#13 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(7): PublicFrontController->renderPage()
#14 /ssd/www/wisegeek/public_html/index.php(11): PublicFrontController::run()
#15 {main}