troubleshooting Question

div innerText isn't working in Firefox

Avatar of tbboyett
tbboyettFlag for United States of America asked on
JavaScriptCSSHTML
3 Comments1 Solution2175 ViewsLast Modified:
I found a solution for what I need except that it does not work in Firefox.  I found this at
https://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_20433780.html.

how can i get firefox, safari, IE 6, & IE 7 to do this?  so far it works on IE 7 for me.

thanks in advance
<html>
     <head>
          <title></title>
     </head>
     <body>
          <div style="{background-color: #ccffcc}" onmouseout="test.innerText='out'" onmouseover="test.innerText='over';">test</div>
          <span id="test"></span>
     </body>
</html>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros