tailieunhanh - JavaScript Bible, Gold Edition part 48

JavaScript Bible, Gold Edition part 48. This book will bring programmers and non-technical professionals, including casual programmers and scripters, painlessly up to speed on all aspects of mastering JavaScript. Key topics include programming fundamentals, JavaScript language elements and how to use them effectively, and how to easily and efficiently add powerful new functionality to HTML documents and Java applets. | 318 Part III Document Objects Reference that creates the window can assign values to the style property of the document in the pop-up window as follows solid 3px gray Beware that the document object of a pop-up window may not implement the full flexibility you know about primary window document objects. For example you are not allowed to assign a URL to the property in a pop-up window. On the Example on the CD-ROM CD-ROM r Related Items document object. isOpen Value Boolean Read-Only NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility While a pop-up window is visible its isOpen property returns true otherwise the property returns false. Because any user action in the browser causes the pop-up to hide itself the property is useful only for script statements that are running on their own after the pop-up is made visible. On the Example on the CD-ROM CD-ROM r Related Items method. Methods hide show left top width height positioningElementRef Returns Nothing. NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Chapter 16 Window and Frame Objects 319 After you have created a popup object with the method and populated it with content you must explicitly show the window via the show method. If the window is hidden because a user clicked the main browser window somewhere the show method and all its parameters must be invoked again. To have a script hide the window invoke the hide method for the popup object. The first four parameters of the show method are required and define the pixel location and size of the pop-up window. By default the coordinate space for the left and top parameters is the video display. Thus a left and top setting of zero places the pop-up in the upper-left corner of the video screen. But you can also define a different coordinate space by adding an optional fifth parameter. This parameter must be a reference to an element on the page. To .

TỪ KHÓA LIÊN QUAN