How To Add Pop-Up Warning to Blog

Posted by Lasantha Bandara on March 29th, 2009 File Under : java script1 Comment

This can be done using Javascript code. Hence if the viewer has disabled Javascript on his blog this may not work. Also many viewers have pop-up blockers in place which may also prevent the display of this mesage.

To add it in your blog follow these steps :

1. Login at Blogger.com.

2. On the Blogger Dashboard which opens for a successful login click the 'Layout' link.

3. The Page Elements subtab of Template tab will open.

4. Click the Edit Html subtab of Template tab.

5. On the Edit Html subtab scroll down in the Template Code box.

6. Copy the code 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 your template. Replace "This is a Demo Pop Up Window where you can put any Messages to viewers!" with your own message.

8. Save the template.

9. Clear Cache and View Blog.

File Under : java script

One Response to “How To Add Pop-Up Warning to Blog”

  1. Varinder Pal Singh says:

    I like Your Site Too Much Thanxxx for Sharing.....:).Keep It up I Bookmark it

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.