Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Javascript games that work in IE don't work in Firefox - why?

  • 2
  • 8
  • 8 views
  • Nzaghachi ikpeazụ nke cor-el

more options

Why can't I get javascript games that work in IE to work in Firefox? The javascript games show up on the page but not in the correct format and the scripts don't work. An example is here: http://www.cornwallfoodandfarming.net/games/KS1-summer-in-farm3/picture-memory.htm

When you open it in IE you can see what it should do!

Any help gratefully received. Cheers...Paul

Why can't I get javascript games that work in IE to work in Firefox? The javascript games show up on the page but not in the correct format and the scripts don't work. An example is here: http://www.cornwallfoodandfarming.net/games/KS1-summer-in-farm3/picture-memory.htm When you open it in IE you can see what it should do! Any help gratefully received. Cheers...Paul

All Replies (2)

more options

That particular game was created a long time ago... in the age of Netscape version 4.

Netscape version 4 had proprietary objects named layers that are no longer supported in Firefox, so the game fails because it assumes that Firefox supports layers. You can see this if you open Tools > Error Console and scroll to the end of the long list after clicking the link to start the game.

If you think the developers of this site might be willing to update the game, let them know about this problem.

If not, and the game is very important to you, you could try Chris Pederick's User Agent Switcher extension (Tools > Add-ons > Get Add-ons) to make Firefox temporarily masquerade as an old version of Internet Explorer. There's no guarantee that will make the game work in Firefox, but it has a better chance than what you get now.

more options

For IE document.all is used, so that won't work either.
They will have to add support for document.getElementById and use id instead of name to make it work with modern browsers.