pop-up code generation

modify the options below, enter the content you want and click the generate button.

after generation, the corresponding link will appear and you can click to test.

URL:

menu bar:toolbar:address:scroll bar:state:

width:high:dimensions variable:

pop up code

copy the popup window code from the build box below

friends who often surf the internet may have been to some websites. as soon as you enter the homepage, a window will pop up, or you can click a link or button to pop up. usually, some precautions, copyright information, warnings, welcome, etc. will be displayed in this window. or the author wants to give special reminder. in fact, it is very easy to create such a page effect. you only need to add a few pieces of javascript code to the html of the page to achieve it. below i will take you to analyze its mystery.

[the most basic pop-up window code]

actually the code is very simple:

window.open ('page.html')

because this is a piece of javascripts code, they should be placed between javascript tags.

window.open ('page.html') is used to control the pop-up of a new window page.html. if page.html is not in the same path as the main window, the path should be stated in front, the absolute path (http://) and the relative path. any path (../) is acceptable.

you can use either single quotes or double quotes, just don't mix them.

this piece of code can be added to any position in the html. the earlier it is, the earlier it will be executed. especially if the page code is long and you want the page to pop up earlier, try to put it as far forward as possible.