- opens Baidu in the current window and makes the URL appear in the search bar.
window.open("http://www.baidu.com/", "_self");
- Open Baidu
window.open("http://www.baidu.com/", "_blank");
- Open a new window and name it “hello”
window.open("", "hello");
- > In addition, there are several options for the second argument of the open function :
- If you want to add something else to the new window, you need a third parameter :
window.open("http://www.baidu.com/", "_self","height=400,width=400,top=10,left=10,resizable=yes");
There is one last argument to the open function, which is about history, whether the window being opened has the same history URL as the window being opened, or whether it is a separate memory.
Read More:
- Several ways for Ubuntu to open command line terminal window
- Click the button to use in the react project window.open Methods open a new page and click the data again
- JS opens a new tab( window.open Application)
- After Android studio is installed, open a pop-up window to prompt failed to load JVM DLL XXX
- Change root to Oracle, and error: can’t open display: can’t open
- How to open dump in Windows
- Windows 8.1 – Fix This app can’t open for Built-in Administrator account
- Vs cannot open the source file unistd. H under Windows
- Error in header file when calling OpenGL to open obj file in vs2013: unable to open include file: “GL / glut. H”: no such file or directories
- Win10 vs 2017 prompt cannot open include file: “windows. H”: no such file or director
- Windows 7 system, start to run input CMD, the window flashed by, disappeared
- Can’t open display: can’t open display: localhost:10.0
- Solution to the problem of vs2017 error report unable to open source file
- CSS: several ways to center the box vertically and horizontally
- [turn] right click to open the prompt [shellexecute failed (2): is this command correct? (fix)] with Notepad + +
- [Android] using request window feature( Window.FEATURE_ NO_ Title) method to remove the title invalid solution
- Win10 can’t drag files to open directly
- npm ERR! Error: EPERM: operation not permitted, open ‘C:\Program Files\nodejs\node_ Solution to cache / xxx
- Vs QT project ‘fatal error C1083:’ failed to open include file
- How to Solve BFSVC Error: Could not open the BCD template store.