javascript - Call script function in html body tag -


Here I try to call a script in body tags but it does not work .. and when I see it here Click on the website, display the image as a popup without any

here is the code

   

When I debug, the image is not displayed as a pop up. So where's the fault? And how to solve it?

Popups are upset, so browsers will open them in response to just one user action (such as on a button) Click) document loading (i.e. load event that you refer to with the onload attribute) is not user action, therefore block call on open is .

When popups are allowed then specific rules are available.


You also have a syntax error in your code (although it may be a transcription error when you made the question) you }; before & lt; / Script & gt; are missing from. It should be shown in the developer tool in your browser.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -