|
|
@ -123,7 +123,6 @@ The following is an example of click type event.
|
|
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<body>
|
|
|
|
<button>Click Me</button>
|
|
|
|
<button>Click Me</button>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
const button = document.querySelector('button')
|
|
|
|
const button = document.querySelector('button')
|
|
|
|
button.addEventListener('dblclick', e => {
|
|
|
|
button.addEventListener('dblclick', e => {
|
|
|
@ -156,7 +155,6 @@ The following is an example of click type event.
|
|
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<body>
|
|
|
|
<button>Click Me</button>
|
|
|
|
<button>Click Me</button>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
const button = document.querySelector('button')
|
|
|
|
const button = document.querySelector('button')
|
|
|
|
button.addEventListener('mouseenter', e => {
|
|
|
|
button.addEventListener('mouseenter', e => {
|
|
|
|