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

0

How do I put an image in a popup using javascript?

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

Google Chrome, for example, has the image of it, but does it have the same or a custom image of it in the popup?

    
asked by anonymous 09.04.2015 / 02:17

1 answer

0

On the page that will load, include in HTML , in tag head :

  • if it's 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 where the image file will be loaded.

    
09.04.2015 / 02:30