Thursday 11 August 2011

How To Add JavaScript Confirm Box to Your Blogger

How To Add JavaScript Confirm Box to Your Blogger

1.Login to your Bogger Dashboard and go to Design >> & Page Elements.

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

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



<script type="text/javascript">function show_confirm(){confirm("YOUR MESSAGE HERE!")}</script><input type="button"onclick="show_confirm()"value="Show confirm box"/>

Note: Replace YOUR MESSAGE HERE! with your alert message.

Result:



4.Now Save your "Html Javascript" and you are done.

No comments:

Post a Comment