JavaScript Window Function Guide Create a pop-up window

zhaozj2021-02-08  277

Create a JavaScript pop-up window function of the guide (Author: hear the wind compiled in January 2001 on 19 Ri 11:35) Internet Explorer 5.5 supports a new window object methods: creatPopup (). You can create a pop-up window as you: var Popupobj = window.createpopup (); When you create this object, the pop-up window is not displayed. You have to call its SHOW method: Popupobj.Show (Yoffset, Xoffset, Width, Height, ReferenceObj) here: Yoffset is the horizontal offset of the pop-ups. Xoffset is a vertical offset from the upper left corner of the pop-up window. Width is the width of the pop-up window. Height is the height of the pop-up window. ReferenceObj is an optional parameter that replaces references for referring to Yoffset and Xoffset on the upper left corner of the screen. Let us demonstrate the use of new pop-up windows. If you click on the link below, a menu of all this tutorial will pop up. Note that when the menu pops, the page scroll back to its top. How do we implement this pop-up window? First, you need to define a visible menu, which will then be reproduced into the menu. To achieve hidden links, you can place the menu to a hidden location.

We select the location (-1000, -1000) and define it in the STYLE tag of the menu (some place in the Head section):