Search the help pages 
(Does not search for items or products)

JavaScript policy

Policy overview

You aren't allowed to use JavaScript to manipulate the standard functions of eBay listings, eBay Store pages, or your profile. For details on what is and isn't allowed on the site, see the guidelines below.

Any attempt to disguise the intention or function of a listing's source code when using JavaScript is a violation of eBay policy. Sellers may not manipulate or edit anything outside of the areas designated for member content.

Beginning in June 2017, Active content such as JavaScript, Flash, plug-ins, and form actions will no longer be rendered in listings. After that time, listings that include active content may no longer render as expected and buyer experience may be impaired. Learn more about how to replace active content.

Make sure your listing follows these guidelines. If it doesn't, it may be removed, and you may be subject to a range of other actions, including limits of your buying and selling privileges and suspension of your account.

What are the guidelines

Not allowed 

Not allowed

You can't use JavaScript that:

  • Calls remote scripts and pages automatically, such as JavaScript "includes" or "iframes."

  • Changes registry entries or otherwise writes to another person's computer hard drive.

  • Creates automatic pop-ups except for links that open in a new window when clicked on.

  • Is used to drop or read a cookie on any eBay page.

  • Loads any binary program on another person's computer automatically.

  • Launches a song or video when a listing is opened.

  • Overwrites any area in the listing outside of the item description area.

  • Manipulates areas outside the listing description, including changing fonts, colors, and backgrounds in areas such as eBay headers and footers.

  • Posts to scripts on eBay automatically.

  • Redirects the user from eBay to another web page, such as using the "replace" script.

Additional information

If you try to use scripts that we disable, you'll get an error message that says "Disallowed JavaScript/HTML Syntax". This means you can't list the item, or the script will be disabled at run-time. Any other error message indicates a separate issue and isn't related to disabling HTML or JavaScript code.

Why does eBay have this policy?

To help keep our website working the way we designed it to, we don't allow using functions that manipulate or change the way the site and its features operate.

Contact Customer Service

You can contact Customer Service to report a listing you think violates this policy. Go to that listing, and then click the Report item link on the right side of the page.

We'll review your report and take appropriate action.

Contact us

Have a question? We can help.

 Contact us

Ask eBay members

Get help from other eBay members. Visit the Answer Center to post a question.