/    Sign up×
Community /Pin to ProfileBookmark

Error: Object doesn’t support this property or method. What’s this mean?

This error was pointing to line 10 which is this:

[code]
if (document.getElementByID(‘linksleftfloat’).innerHTML != null) { document.getElementByID(‘linksleftfloat’).innerHTML = ”; document.getElementByID(‘linksleftfloat’).innerHTML+=linklist; }
[/code]

Can someone help me out and explain why I’m getting this error and help me fix it?

That’s supposed to see if the linksleftfloat has no text/html and if it does clear it and place new text…

-Thanks

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@steelersfan88Apr 04.2004 — case sensitive:if (document.getElementByI[color=blue]d[/color]('linksleftfloat').innerHTML != null) {
document.getElementByI[color=blue]d[/color]('linksleftfloat').innerHTML = '';
document.getElementByI[color=blue]d[/color]('linksleftfloat').innerHTML+=linklist;
}
×

Success!

Help @DiarYofaMadmaN 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.27,
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,
)...