Friday, September 17, 2010

Article | How To Add JavaScript Popup Boxes to Blogger

Use below codes to add Popup Boxes to your blog post or as a page element.



Alert Box



Code:

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




Result:







Confirm Box



Code:

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




Result:







Prompt Box



Code:

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




Result:



Loading...

Comments :

0 comments to “ How To Add JavaScript Popup Boxes to Blogger ”

Top Views

BloggerTipsTemplates

CHICKLETS

Enter your email address:

Delivered by FeedBurner

Followers