Tag Archives: preview

Selective Amazon Product Preview Popups

As an Amazon Associate, I appreciate being able to easily incorporate popups; however, the Product Preview javascript, turns every single Amazon link into a popup. There is a very simple way to for some links to have popups while disabling popups on others.

The standard link to

<a href="http://www.amazon.com/dp/B003L1ZYYM/?tag=tidgubi-20">AmazonBasics HDMI Cable (6.5 Feet/2.0 Meters)</a>

renders as follows: AmazonBasics HDMI Cable (6.5 Feet/2.0 Meters) (hover to see the popup)

It appears that the Amazon code parses links for "http://www.amazon.com", so updating the link with "https" to

<a href="https://www.amazon.com/dp/B003L1ZYYM/?tag=tidgubi-20">AmazonBasics HDMI Cable (6.5 Feet/2.0 Meters)</a>

renders without a popup as follows: AmazonBasics HDMI Cable (6.5 Feet/2.0 Meters)
The link works fine, because Amazon automatically redirects from https to http.