/    Sign up×
Community /Pin to ProfileBookmark

This Code is Causing an Error in IE7, but works in Mozilla,Netscape. How do I do the same thing without an Error?

onload=’document.getElementByID(start-slideshow).click;’

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@maiku_no_jutsuAug 09.2007 — mebbe put the start-slideshow in '...' it looks like the name of some object and i've seen them in '..' before
Copy linkTweet thisAlerts:
@Nate1authorAug 09.2007 — Thanks Ill give it a go when I get home in a few hours, and get back to you, yes Ive used the same code with '' elsewhere on the page going code blind.
Copy linkTweet thisAlerts:
@maiku_no_jutsuAug 09.2007 — it seems to me that it wud be the other way around.

Usually IE lets you do bad code and Firefox is more strict. kinda weird that if that's the case that IE is bein so picky.
Copy linkTweet thisAlerts:
@Nate1authorAug 09.2007 — Really? The Code works completely uninterprupted, with fade out effects in Firefox, Netscape 8 Rendered as IE6? and Firefox, But not in IE7 (Havn't Checked IE6 yet).

I never have trouble with Firefox, I suppose cause I use it when developing then test on IE, mostly because I hate that certain CSS properties don't work on IE.
×

Success!

Help @Nate1 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...