Code
Execute
<!DOCTYPE html> <html> <head> <title>Wikitechy onmouseup attribute</title> </head> <body> <p onmousedown="mouseDown(this)" onmouseup="mouseUp(this)"> Click Here to check onmouseup Event.<br>Learn to Code in Wikitechy. </p> <script> function mouseDown (obj) { obj.style.color = "red"; } function mouseUp (obj) { obj.style.color = "blue"; } </script> </body> </html>
Result