JS playing child window frame

window.open pop up a new window of command;

'page.html' filename pop-up window;
name (not the file name) 'NewWindow' pop-up window, not necessarily, free space '' instead;
height = 100 the window height;
width = 400 window width;
Top = 0 from the window top of the screen pixel values;
left = 0 is the left side of the pixel values from the screen window;
toolbar = NO whether the toolbar is displayed, yes display;
MenuBar, scrollbars represents the menu bar and scroll bars.
resizable = no is allowed to change the window size, yes to allow;
LOCATION = NO whether to show the address bar, yes to allow;
Status = NO status bar information (usually a file is already open), yes whether to allow the display;
end js script As long as one of the parameters to change the top and left of it!

Refresh the parent window:

window.parent.opener.location.reload();

Close the current window:

window.close();

Published 26 original articles · won praise 0 · Views 708

Guess you like

Origin blog.csdn.net/YHM_MM/article/details/103519067