Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
317 views
in Technique[技术] by (71.8m points)

html - Generate Amazon link for open side popup with pre-applied filters

Edit: Stackoverflow modify automatically the Amazon links when you click, so for see the popup, select, copy and paste the URLs in the browser.

On Amazon there is a link to open directly a side popup, like this:

https://www.amazon.com/dp/B07FKTZC4M/#aod (#aod open the popup)

where We can enter some filters. I tried different ways with no success to generate a link that open directly the site popup with new filter pre-applied.

So i need a link that open this page with "new filter" pre-applied:

enter image description here

I tried different solutions, but don't work, for example:

https://www.amazon.com/dp/B07FKTZC4M/ref=aod_f_new#aod

https://www.amazon.com/dp/B07FKTZC4M/ref=new#aod

https://www.amazon.com/dp/B07FKTZC4M/#aod_f_new=true

https://www.amazon.com/dp/B07FKTZC4M/ref=aod_f_new=true#aod

https://www.amazon.com/dp/B07FKTZC4M/ref=aod_f_new?ie=UTF8&f_new=true#aod

I see some informations on source page, maybe that help:

enter image description here

Question: Is there a way to create a link that open directly the side popup with new filter pre-applied? Maybe adding some parameters to the URL.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can call a function in JavaScript with which you can change the z-index of the popup. Something like this:

<button onclick="popup()" value="open popup">

Also make the popup. I am just making a rough one:

<div id="popup" style="z-index:1000; position: absolute;">Some code</div>

Remember to set the z-index at behind and the position. Then for JS i will make it simple in case you can't code JS

function popup(){
document.getElementById("popup").style.zIndex=-1;//basically changing the popup's z-index
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...