A reader wanted to know how he could add a pop up warning to his blog which is displayed just before the blog opens.
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 between </head> and ]]></b:skin> tags 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.








6 comments:
I am trying to add the pop up window but when i get to step seven i can not find, /b:skin, in my template. I am using the TicTac blue template
thnx for the trick
I love your blog!
one stop research. it's all here.
thank you I learn allot here.
i'm trying to create a pop up window , but for my blog , i have changed the "layout" to "template" may i know where should i put the text in?
~Germaine~,
Paste the code between :
</style>
</head>
man u are wasome . .. . great trick . thanks a lot . i own 10 blogs and have put it in all and viewers are very happy to get notice before blog
CLICK HERE TO LEAVE A COMMENT.
Skip to top of post.