| ©2007 Alt-Web Design and Publishing Nancy O'Shea |
|||||||||||||||
|
|
|||||||||||||||
|
Making Print Page and Close Window Buttons in Net Objects FusionDescription:These are nothing more than a form button with an onClick="javascript" trigger.Making a Print Page Button:
onClick="javascript:window.print()"
That wasn't so hard was it? But there's an even easier way to get the job done. Shortcut to making Print Page Buttons:
<input type="button" value="Print Page" onClick="javascript:window.print();">
Shortcut to making Close Window buttons:
<input type="button" value="Close Window" onClick="javascript:self.close();">
Styling buttons:With a little CSS, you can make your buttons pop without using images. <input type="button" style="background-color:#FFCC66; color:#000000;font-family:arial,tahoma,sans-serif; font-size:18px; width:175px; height:35px" value="Close Window" onClick="javascript:self.close();">
Simply change the Hex # Color Codes to match you site's color scheme or use this handy Color Picker Tool to help with color selection. Adjust font-size, width and height values in pixels to fit your needs. That's all there is to it. We hope you enjoyed this tutorial.
|
|||||||||||||||
|
|
|||||||||||||||