简体   繁体   中英

Open browser security info with JS?

When I'm on https, the browser shows a secure icon in the address bar. I can usually (depending on browser) click on this to see more info in a native popup.

See chromes implementation here: https://www.dropbox.com/s/0w62tc6oaj63knp/Screenshot%202015-12-30%2014.01.53.png?dl=0

Other browsers implement equivalent features.

I want to draw attention to the security of my site, by showing a picture of this icon by my "Buy" CTA, and something that says "Check for this secure icon in your browser". I want the more info section (as in the screenshot) to expand when my icon is clicked.

Is this possible?

Apologies if question has already been answered, I tried to search but not sure if this info box has a name, so not sure what to search for.

Thanks, David

No it's not possible, sorry.

Browsers let Javascript to interact with their core to certain level, but that's about it. window object provides many functions to interact with browser but opening "Site's Info popup" is not provided.

You can read about Mozilla and Chrome extensions and see they interact with the browser through JavaScript, but this is only inside extensions, signed scripts and scripts located on user's hard drives.

So if your application needs access to something the browser should ask the user its self or you could instruct the user on how to do this.

I Hope it helps. :(

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM