![]() |
JavaScript - onmousedown
I am new to JavaScript, and I am playing with this line of code that to my knowledge is correct but it will not run. The code is:
<body onmousedown="document.bgcolor='#0000CC'"> I press the left mouse button down and it doesn't work; any ideas as to why? |
without checking I believe the function is onMouseDown not onmousedown. Javascript functions are case senstive.
|
I have this <body onMouseDown="document.bgcolor='blue'"> and it still isn't changing the bgcolor. Anyone know why that is?
|
Code:
function updateBody() |
All times are GMT. The time now is 07:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|