1. Go to Blogger.come and Sign In to your Account.
2. Now choose your blog and Navigate to Template > Edit HTML.
3. Now you can place the below code anywhere but if you wanna render this alert box faster than paste it right above the </head> tag or if you want it to load after the blog has been loaded than you can place the below code after the </body> tag.
<script type='text/javascript'>
alert("Wats Up Guys ! Welcome to best of hacks");
</script>
4. Now just change the red line with your line and your pop-up box is ready to be popped-up.
How to Show this Pop-Up Box only on the Homepage :
If you just want to render this alert box on the Homepage of your Blog you can use the below code follow the same procedure above.
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<script type='text/javascript'>
alert("Wats Up Guys ! Welcome to best of hacks");
</script>
</b:if>
So now just refresh your blog and enjoy this new popup box, share news, important information or a hearty greeting. Do share this post with all your friends if you liked
No comments:
Post a Comment