The onmouseup event is triggered when the mouse button is released.
Tools/Materials
editor
Methods/Steps
1
Create an html file named onmouseup
2
Insert an img into the document and add the onmouseup event, calling the custom function when onmouseup is triggered
3
This article is based on experience
4
Create a custom function and set the width, height, and border of the picture in the function
5
The prompt is assigned to the p tag when the event is triggered
6
When the mouse is pressed down, the picture will be enlarged, and the picture border will be set, and the prompt message will be viewed in p