Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Firefox and Javascript

Status
Not open for further replies.

bill1one

Programmer
Sep 29, 2004
93
0
0
US
I have the following code that Firefox does not recognize:

l.style.cursor = "hand";

In iExplorer, it works fine, but Firefox doesn't like the hand. I've tried switching "hand" to "pointer" and it still doesn't like it.

Any suggestions. I've noticed that Firefox doesn't like a lot of my scripts. Any resources on js for firefox.
 
This works for me:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC
	"-//W3C//DTD XHTML 1.0 Strict//EN"
	"[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/URL]
<html>
    <head>
        <title>test</title>
    </head>
    <body>
	<p onmouseover="[COLOR=red]this.style.cursor='pointer';[/color]">foo</p>
	</body>
</html>

Either l (as in l.style.cursor) isn't a valid FireFox object, or there's something stopping the script running in FireFox before it reaches this statement.

Firefox's JavaScript Console is a great tool: click 'Tools'>'JavaScript Console'.

---
Marcus
better questions get better answers - faq581-3339
accessible web design - zioncore.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top