DEMO of onmousedown and onmouseup events

Bring Mouse inside this
Press and hold your mouse key first , then release it

HTML

<div id="dis1" style=" position: relative; right: 0px; top: 10px;
 background-color: #f1f1f1; width: 250px; padding: 10px; color: black; border: #0000cc 2px dashed; " 
onmousedown="this.style.background='#f0f000';" onmouseup="this.style.background='#90f0c0';">
Bring Mouse inside this <br>Press and hold your mouse key first , then release it</div>

Subscribe to our YouTube Channel here


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com




    Post your comments , suggestion , error , requirements etc here .




    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2023 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer