Beberapa Event pada pembuatan website dengan javascript
Penulisan Javascript
<html>
<body>
<h1>Latihan Membuat Website dengan javascript</h1>
<script type="text/javascript">
document.write("<p>" + Date() + "</p>");
</script>
</body>
</html>
<body>
<h1>Latihan Membuat Website dengan javascript</h1>
<script type="text/javascript">
document.write("<p>" + Date() + "</p>");
</script>
</body>
</html>
Event Attributes
The event occurs when an element loses focus
2. Onchange
The event occurs when the content of an element, the selection, or the checked state have changed
3. Onclick
The event occurs when the user clicks on an element
4. ondblclick
The event occurs when the user double-clicks on an element
5. ondrag
The event occurs when an element is being dragged
6. onfocus
The event occurs when an element gets focus
7. onkeydown
The event occurs when the user is pressing a key or holding down a key
8. onkeypress
The event occurs when the user is pressing a key or holding down a key
9. onload
The event occurs when an object has been loaded
10. onmouseover
The event occurs when a user mouse over an element
11. onmouseout
The event occurs when a user moves the mouse pointer out of an eleme
12. onselect
The event occurs after some text has been selected in an element
13. onunload
The event occurs before the browser closes the document
Informasinya bermanfaat, thanks ya
ReplyDeletesama sama.. bang slagu ini siapa ya ?
ReplyDeletemakasih udah datang..