-
Problems
This line enable URL Rewriting . It must be enabled via the RewriteEngine directive! and if your .htaccess file is going to use rewrite rules, you should always include this line. Otherwise, you can’t be sure if its enabled or not. The string “on” is case insensitive.
This is called timing events.
Click a button. Wait 5 seconds, and the page will alert "javascript":
<button onclick="setTimeout(myFunction, 3000)">click</button>
<script>
function myFunction() {
alert('javascript');
}
</script>
The setTimeout() Method
window.setTimeout(function, milliseconds);
The window.setTimeout() method can be written without the window prefix.
The first parameter is a function to be executed.
The second parameter indicates the number of milliseconds before execution.
No comments:
Post a Comment