JavaScript mouse click event (onclick)

onclick is a mouse click event, which occurs when the mouse is clicked on the web page. At the same time, the program block called by the onclick event will be executed, usually used with buttons.

Let’s see an example

    php.cn  

不要点我

You can try adding onclick events to other tags

Continuing Learning
||
php.cn

不要点我

submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!