Skip to main content
Published: February 04 2015, 4:46:00 PMUpdated: August 17 2022, 1:44:24 PM

I'm referencing an external JS file with a src html tag, why am I getting a "Java script not allowed" error?


The chances are, you will have a tag that is similar to this.


<HTMLTag>
<script type="text/javascript" src="http://www.domain.com/scripts/somescript.js"></script>
</HTMLTag>


The reference to the external file is not allowed as per our HTML and JavaScript policy.


src="http://www.domain.com/scripts/somescript.js" will throw the error

  <ShortMessage>Java script not allowed.</ShortMessage>
  <LongMessage>Your listing cannot contain javascript (".cookie", "cookie(", "replace(", IFRAME, META, or includes), cookies or base href.</LongMessage>
  <ErrorCode>353</ErrorCode>


For additional information about eBay's javascript policies and guidelines, please visit

http://pages.ebay.com/help/policies/listing-javascript.html#what

How well did this answer your question?
Answers others found helpful