Breaking

Sunday, June 14, 2020

How To Add Pop-Up Warning to Blog HTML Code

How To Add Pop-Up Warning to Blog HTML Code
How To Add Pop-Up Warning to Blog HTML Code

This can be done using JavaScript code. So if the viewer has disabled JavaScript on their blog, it can't work. In addition, many viewers have pop-up blockers that may prevent them from displaying this message.
Follow these steps to include it in your blog:

1. Login to Blogger.com.
2. On the Blogger Dashboard after a successful login click the 'Layout' link.
3. The Page Elements subtab of Template tab will open.
4. Click on the Edit Html subtab of Template tab.
5. On the Edit Html subtab scroll down to the Template Code box.
6. Copy the code given below :
<script language='JavaScript'>
//
alert ("This is a Demo Pop Up Window where you can put any Messages to viewers!")
</script>

7. Paste the code above just before </head> and in the template. Replace "This is a Demo Pop Up Window where you can put any Messages to viewers!" with your personal message.
8. Save the template.
9. Clear Cache then View Blog

No comments:

Post a Comment