Sunday, February 15, 2009

HTML TUTORIAL: How to show two events on a single click by using Onclick event

In this post I would like to share some tips to show two or more events on a single click. There are many ways you will find through Google search but the most easiest way I would like to share with you. Its very simple. Let's take a example, suppose you want to show some html document with some pdf file in a pop-up on a single click... here is a code for that:

<input type="submit" name="print" onClick="popup = window.open('example.pdf', 'PopupPage', 'height=768,width=960,scrollbars=yes,resizable=yes'); location.href='example.html'" target="_blank" value="Print" class="btn_bg"/>

Hope you would like it. Drop your comment on the same :D

Related Posts :





0 comments :

Post a Comment

 

Copyright © 2009 - tutorialfeed.org