onmouseout/onmouse over

Does anyone know why I can not use the onmouseover onmouseout javascript function on a div tag in asp.net.

I have used this method for years but in VS 2003 it tell me that onmouseover onmouseout is not an element of the div tag.


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

just use it and ignore the warning by VS 2003. Till working

Hope this help
.:: LDLP ::.
wathertonAuthor Commented:
cheers will carry on. Strange that it does not pick this up though, and there I was thinking I was working with the latest technology!

wathertonAuthor Commented:
Oh by the way, just to add, the events do nothing in the browser. They do no do any mouse over or onmouseout.


I use VS 2003 and till working correctly, here is my example code. My VS 2003 displayed IntelliSense for onmouseout and onmouseover of <div> tag.

<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="Test1.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
            <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
            <meta name="CODE_LANGUAGE" Content="C#">
            <meta name="vs_defaultClientScript" content="JavaScript">
            <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
            <script language="javascript">
                  function out(){
                        alert("Mouse out");
                  function over(){
                        alert("Mouse over");
      <body MS_POSITIONING="GridLayout">
            <form id="Form1" method="post" runat="server">
                  <div onmouseout="out();" onmouseover="over();">Test Mouse Out/Over</div>


Hope this help
.:: LDLP ::.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
wathertonAuthor Commented:
Dungla, that seemed to work fine, maybe it was something I was doing.

Thank you for that.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.