How to change the text of a div tag

Posted by michael on Stack Overflow See other posts from Stack Overflow or by michael
Published on 2010-06-05T22:24:19Z Indexed on 2010/06/05 22:32 UTC
Read the original article Hit count: 166

Filed under:
|

Hi,

I have a simple div tag. Can you please tell me how can I change the text to 'mouse in' in my onmouseover handler? and 'mouse out' in my onmouseout handler?

<div id="div1" onmouseover="alert(1);" width="100px" height="200px" border="1">
test
</div>

and why the width/height and border attributes do not work? I want to set the border to be 1 pixel with width = 100 pixels and height = 200 pixels.

Thank you.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html