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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -