How to create a popup window for Blogger
Popup window is an additional window that appears when someone click on that page where the Popup script is running.
- Login to your blogger account
- Go to Dashboard >> layout and click “Add a Gadget” from sidebar or footer
- Open HTML/JavaScript gadget
- Add the following script in HTML/JavaScript content area and click save.
See the Pen Popup Window appears when Someone Click on a Page by Virender Bartwal (@bartwal) on CodePen.
<script type="text/javascript">
document.body.onclick=function()
{
window.open('https://Virender-bartwal.blogspot.com','poppage','toolbars=0, scrollbars=1, location=-4, statusbars=1, menubars=0, resizable=0,width=1400,height=668,left=1,top=-180','_self');
}
</script>
You can Adjust the height and width of the popup page.
Why should I use it:
- When Someone clicks on the anywhere in the page a popup would appear.
- You can Use it as a referral traffic for your website or a particular post.
* Bounce Rate: Bounce rate is the percentage of visitors who come to your website and leave without viewing any other pages on your website.