How to make the window in the window when opening the window!

xiaoxiao2021-04-10  567

ShowModalDialog ('Test.htm');

-------------------------------------------------- -------------

First use Screen.Width and Screen.Height to get the window size, calculated to determine

-------------------------------------------------- -------------

Plus the body of the web page to open

Function BodyonLoad ()

{

Var Top = (WINDOW.SCREEN.AVAILHT-Document.body.clientHEight) / 2);

Var Left = (WINDOW.SCREEN.AVAILWIDTH-Document.body.ClientWidth) / 2);

Window.moveto (Left, TOP);

}

-------------------------------------------------- -------------

First understand one first

WINDOW.OPEN ('Help.htm', '', 'Width = 1000, Height = 750, TOP = 0, Left = 0, Scrollbars = YES')

you got it?

Try the value of top and left to get it.

How to calculate, look at you.

Can be used upstairs

转载请注明原文地址:https://www.9cbs.com/read-133471.html

New Post(0)