Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Stealing someone elses javascript legal?

Posted on 2004-10-27
Medium Priority
Last Modified: 2009-12-16
There are a million websites out there doing cool things with their javascript.  Are there any laws against using their javascript on my own website or does it become public domain because everyone has access to it?
Question by:mrloumrlou
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +6
LVL 18

Expert Comment

ID: 12429336
Yes there are laws against it.

Anyone can go to the library and take out a book.  Doesn't make it legal to copy it for your own use.  A work is placed in the public domain only when it's creator chooses to (or it ages past a certain point).

Expert Comment

ID: 12429424
The thing is, 99% of people will not waste time trying to sue you, because it is very hard to prove that they came up with the code first.

Now that I think about it, I'm not sure such a law exists...

Assisted Solution

ITcrow earned 160 total points
ID: 12429604

To my knowledge, there is nothing black and white. Not to be considered as legal advice.

- Anything published ( books / papers / internet ) is not considered as trade-secret or privileged information.
- These are however, protected by their own copy-right laws, as stated in the code header.
- Reverse Engineering is what you are doing in this case, by using a tool ( View-Source ). This could be
  completely illegal based on any web-site usage agreement you might have accepted.

However, if your code is not a copy or derivative of the original code, you should be ok. For example, you saw
a visual effect and then you wrote some code to produce the same effect is completely okay. On the other hand
while writing the code if it can be established that you had access to the original code, things may turn against

Safest is to read code headers or any agreements you accepted electonically as part of using a software
or web-site.

Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

LVL 33

Assisted Solution

sajuks earned 160 total points
ID: 12430459
The normal practice that we employ is if we use the persons javascript function then in the page we
acknowledge his/her contribution,something like
function abc()
/* This script has been taken/modified from http://www.abc.com and has been written by
Mr.X Y .Z  

Also unless stated explicitly that he/she requires a donation/fee for the use of his/her scripts
it rarely is a problem ( touch wood ).What i feel is that we should respect their creativity by
admitting their touch in our scripts.

Accepted Solution

sg7_biz earned 180 total points
ID: 12431176
I would ask them, if they say yes or tell you where they got the script from you have no problem.

If they say no, then you can't use it.

Copyright is simple, anything you create and is orginal you automatically own the copyright, regardless if you state it or not.

If they say, no, ask Experts Exchange for help doing the javascript you want, or where to find the script you are allowed to use. There are a lot os site that provide scripts for free that you are allowed to use, also where most people would look first before they write there own.

If they had to write it, and they are the only ones who have done it, then it would be nice to ask. You will find most people like to know other like there work.

LVL 53

Expert Comment

ID: 12434587


regarding Internet copyright issues.


Expert Comment

ID: 12444390
If you see something cool on a website done in javascript. Chances are the owner of the site didnt create it themselves either..
There is a vast repository of readialy available scripts on the net.

If you see something you like, search for it on a site that gives away free javascript and then you dont have to worry about any legal ramifications..

Craig Wiseman
<email address removed by COBOLdinosaur>

Expert Comment

ID: 12445928
I just joined up yesterday and had not read throught the entire site yet...
Not to worry, it wont happen again

LVL 53

Expert Comment

ID: 12447491
No prob.  Editors are not the police.  Better me than a mod. ;^)


Author Comment

ID: 12450149
I'll split the points as I see fit guys.  Thanks for the input.  So far it seems to me that under the LAW anything that is created by the author has an implicet copywrite. But what about the freebees?  What if someone posted something as a freebee but they got it from somewhere else?  This whole copyright thing seems very open to interpetation to me. Are there any CONCRETE laws on javascript?  Because c'mon now.  Javascript code must be recycled more than any other thing out there.  And also, is there ANY cases of someone who has WON a lawsuit over use of javascript?  It seems like stealing someone elses javascript comes down to morals for me and I would never steal some javascript from some little independent developer who explicitaly said he wants money for it but if there is NO mention of any compensation? Is that illegal... wrong... what!?

Expert Comment

ID: 12453589
Anything you do not do yourself, then the copyright belongs to someone else.

If you have their permission to use it then go for it.

A lot of scripts will have a credit in them saying who made it and that others are allowed to use it.

I would myself only use sites that you trust.

For example everyone know you can download Blockbuster films, music, and there are sites that offer it, so you could get them if you wanted. But you know that even if the site said, it's free, help yourself, no copyright that you should not do it.

Just because you can does not make it legal or right.

All I would say is when you find a script you like, look for one just like it that you are allowed to use. There are a lot of places that let you have code for free.

Anything else would be a gamble. Do you want to be the one that ends up being the example?

Expert Comment

ID: 12454106
Has anyone mentioned that there are huge repositories of shared scripts where the right for non-commercial use is freely given, try ... javascripts.com or dynamicdrive.com or ....


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question