I know very little about javascript and coding in general, which is why I'm here. This is probably a very simple question:
While I was on Dailymotion.com (Youtube-like site), I noticed that every other video (or so) had a random script across the top of the page that was some variation of
Code:
document.getElementByld('fb-root').appendChild(e);}}();
OR simpy
Code:
fb-root').appendChild(e);}}());
I'm just wondering if this is bleeding over from sloppy scripting, or if this is some reason for concern. Is this trying to inform me of something, or is it just a mistake on the part of Dailymotion?
From what I've read so far, I assume this is a relatively common command for java/javascript. I'm just wondering what it's doing at the top of the webpage. According to google, the "fb-root" has something to do with Facebook.
Thanks everyone!
Edit: mod's edit
Hi mynameisryan, welcome to DynamicDrive!
In the future, do not cross-post (do not post more than one thread on the same topic). This only creates confusion.
In many cases -especially since these are your first posts- it also makes us (the mods) think you're a spammer, and can get you banned pretty easily.
In the meantime, I have deleted your other thread. This is the appropriate forum, since this is a javascript (not java) question.
Also,Please use the forum's bbcode tags and indent your code to make it more readable:
for php code............[php] <?php /* code goes here */ ?> [/php]
for html...............[html] <!-- markup goes here -->.....[/html]
for js/css/other.......[code] code goes here................[/code]
I've made these changes for you in your first post.
Bookmarks