August 12, 2011

How To Add Confirmation box to Blogger


The script asks for confirmation before allowing someone to enter your page

How To Add Confirmation box to Blogger

1.Login to your blogger dashboard and go to Desing --& Page Elements.

2.Click on 'Add a Gadget' on the sidebar.

3.Select 'HTML/Javascript' and add the one of code given below and click save.

<script>
if (!confirm("Do you want to enter this site?"))
window.location=history.back()
</script>

Note: Change pop up text Do you want to enter this site? as you like.

Now You are done

No comments:

Post a Comment