Find the answer to your question
Advanced Search
In my description, I use window.open in my JavaScript function and I am getting the following error:
<?xml version="1.0" encoding="utf-8"?>
<VerifyAddItemResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2006-11-28T19:24:04.609Z</Timestamp>
<Ack>Failure</Ack>
<Errors>
<ShortMessage>Java script not allowed.</ShortMessage>
<LongMessage>Either your Description, Location, or Checkout Instructions has Java script that is not allowed.</LongMessage>
<ErrorCode>353</ErrorCode>
<SeverityCode>Error</SeverityCode>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Version>487</Version>
<Build>e487_core_Bundled_3893385_R1</Build>
</VerifyAddItemResponse>
Summary
eBay does not permit the use of several types of HTML and JavaScript functions in member listings, Stores pages, About Me pages, or Want-It-Now ads. HTML or JavaScript that creates automatic "pop-ups" is one of them. Hence when you use window.open in your JavaScript, you get the Java Script error. If you need to add links in your description that open in a new window, use anchors and set the target to blank. Here is an example:
<a href ="www.mysite.com" target="_blank">content</a>
Version Info
The code example above was based on the versions specified below:
API Schema Version | 487 |
Additional Resources
- eBay webite for policies: HTML and JavaScript
How well did this answer your question?
Answers others found helpful
- Error 36 -An error occurred
- Error Code 240 when listing Items on the German site
- API Call returns an 'XML Error Text' error
- I'm referencing an external JS file with a src html tag, why am I getting a "Java script not allowed" error?
- How can I add my affiliate information to the JavaScript widget samples?