Category Archives: JavaScript

Print using JavaScript

If you would like to print your HTML page contents using your printer, here is a one line javascript: Code Explain: <a href=”” : This is for the mouse hand to appear when mouse hover over print icon. onclick=”” : … Continue reading

Posted in HTML, JavaScript, Programming | Leave a comment

How to open a new page/window and send parameters by clicking a button?

Because neither Server.Transfer nor Response.Redirect has an option to open a new page/window , this is a workaround: Failed Solutions: I thought this is a Smart solution <asp:Button ID=”OpenNewPage” runat=”server” Text=”Open New Page” OnClientClick =”document.forms [0].target = ‘_blank’;“/> But it … Continue reading

Posted in JavaScript, Programming | Tagged , , | Leave a comment