JavaScript special effect instance 002-timed window opening, javascript002-
Instance 002 timed window opening the instance indicates that the window should be opened after the specified time. The main technical point is to use the setTimeout () method of the window object to implement timed window opening. The syntax format of the setTime () method is as follows.
<span style="font-size:14px;">setTimeout(function,milliseconds)</span>
The parameters are described as follows. Function: the name of the JavaScript custom function to be called. Milliseconds: sets the timeout time (in ms ). Function: Call a function when the timeout is exceeded. This value can be cleared using the clearTimeout () function. Note: The setTimeout () method only calls the callback function after the timeout time, while the setInterval () method repeatedly calls the specified function at a certain time. Current process 1. production is used to open a window to show the current advertisement page new.html
<Html> 2.use function to create a custom pp() (setset, and use settimeout()(( indexindexindexindexindexindexindexindexindexindexindexindexindex.
<Pre name = "code" class = "html">
Note: The content of the style label is css. We focus on the content in the script label. In this way, our instance is ready.