How to put an image in the popup (on the toolbar part (below))?

Asked

Viewed 501 times

0

How to put an image in a popup using javascript?

When opening a popup with window.open, it opens without image below, just a gray drawing. How do I place image? (below, in the toolbar.

Google Chrome, for example, has the image of it, but has how to put the same image of it or a custom one there, in the popup?

1 answer

0

On the page that will be loaded, include HTML, on the tag head:

  • if it is PNG:

    <link rel="icon" href="image.png" type="image/png" />
    
  • if it is ICO:

    <link rel="icon" href="image.ico" type="image/x-icon" />
    

The href in each example above, refers to the path from which the image file will be loaded.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.