Page 1 of 1

"Print" action button and "save as"action button....how to?

Posted: Thu Oct 30, 2008 9:13 am
by azhan
hey guys,

Im getting familiar with the php programming now....but i still not know how to create a button that could initiate the print function and a button that could "save as"the current display information on the page.

I found this....can i use this?

Code: Select all

 
 
<input type="Button" name="printit" value="print" onclick="javascript&#058;window.print();">

thanks
azhan

Re: "Print" action button and "save as"action button....how to?

Posted: Thu Oct 30, 2008 9:26 am
by pavanpuligandla
but i still not know how to create a button that could initiate the print function and a button that could "save as"the current display information on the page.
for printing it will be okay,
onclick="javascript:window.print()";

but i didnt get u wat u said about save as?
u mean to save ur web page or waht?

Re: "Print" action button and "save as"action button....how to?

Posted: Thu Oct 30, 2008 9:39 am
by azhan
pavanpuligandla wrote:
but i still not know how to create a button that could initiate the print function and a button that could "save as"the current display information on the page.
for printing it will be okay,
onclick="javascript:window.print()";

but i didnt get u wat u said about save as?
u mean to save ur web page or waht?
save the content display of the web page....save as in such it could be save under what type of files and where to store it..."save as"....heheh

thanks!