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> Event Attributes 1. Onblur 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