When you are redesigning a Blogger blog you sometimes want visitors to see an "under construction" notice without taking the blog offline. This small JavaScript snippet opens a popup window with your notice image the first time a visitor clicks anywhere on the page. No plugin, no theme editing.
Steps
- Upload your "under construction" image to any post (or use the sample image below) and copy its URL.
- Go to Blogger → Layout → Add a Gadget → HTML/JavaScript.
- Paste the code below, replace the image URL with yours, and save.
<script type="text/javascript">
document.body.onclick = function () {
window.open(
'https://YOUR-IMAGE-URL/underconstruction.jpg',
'poppage',
'toolbars=0,scrollbars=1,location=0,statusbars=0,menubars=0,resizable=1,width=950,height=650,left=300,top=50'
);
document.body.onclick = null; // show only once
};
</script>
Tip: the last line makes the popup appear only once per page load so visitors are not annoyed. Remove the gadget when your redesign is live. Modern browsers block popups that are not triggered by a click, which is why the code waits for the first click.
![]() |
| Sample under-construction image |
More Blogger how-tos: add a contact form page and add a drop-down menu.

Comments
Post a Comment