Open browser security information with JS?

When I am on https, the browser displays a security icon in the address bar. Usually I can (depending on the browser) click on this to see more information in my own popup.

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

Other browsers implement equivalent functions.

I want to pay attention to the security of my site by showing an image of this icon with my Buy CTA and something that says "Check this safe icon in your browser." I want the section of additional information (as in the screenshot) to expand when I click on the icon.

Is it possible?

I apologize if the question has already been asked, I tried to search, but I'm not sure if this information field has a name, so I'm not sure what to look for.

Thanks David

+6
source share
1 answer

No, this is not possible, sorry.

Browsers allow Javascript to interact with its core at a certain level, but more on that. The window object provides many functions for interacting with the browser, but the Site Information popup window does not open.

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

So, if your application needs access to something, the browser should ask the user himself, or you can instruct the user on how to do this.

Hope this helps. :(

+11
source

All Articles