Skip to main content
Published: November 28 2006, 12:42:00 PMUpdated: August 25 2022, 8:12:11 AM

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 Version487

 



Additional Resources

 

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

Got thoughts? Click the feedback button – your insights help us improve!