showPopup Method

Shows a pop-up window.

showPopup(pop-up);

 

Parameter

Description

popup

An SGPopup or SGNotification object that describes the pop-up to show

Remarks

This method displays an HTML pop-up window that contains Microsoft Internet Explorer browser. This window is used to display any text or HTML content.

It is important to use the showPopup() method when the window has to float above the 3D window area. Attempting to display an IFrame, Div, or transparent windows above the 3D window may cause flickering.

The popup parameter determines the content and properties of the pop-up window.

The SGWorld object can display two types of pop-up.

The SGPopup object is a general purpose pop-up and its appearance can be modified.

The SGNotification object has a predefined style - a single text line without caption.

Example

The following example illustrates the use of the showPopup method.

function showMyUrl()

{

   var popup = new SGPopup("My popup", "http://www.myweb.com");

   globe.showPopup(popup);

}