DOM & Events Creating an Image Slider
The code is in the address above Is there no error in this code? The result is assumed 10, not 5 What will be the content of the paragraph after the user clicks on it twice? <p id='txt' onclick='test();'>20</p> <script> function test() { var x=document.getElementById('txt'); var n = x.innerHTML; x.innerHTML = n/2; } </script>