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.

<script type="text/javascript" src=""></script>

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

src="" 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>

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

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