-2

when open website - how to load image popup

once website opened a popup image needs to open . auto height and weight.

need close button to close the image.

if click the image is to go another page in another window.

2 Answers2

0

use window.onload() and then add your popup.

btevfik
  • 3,391
  • 3
  • 27
  • 39
0

You can't. Popup windows can be sufficiently annoying that browsers only allow them to be triggered in response to the user interacting with the page. Arriving at the page is insufficient.

Add the image to the page itself instead.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335