blackpearl Posted April 6, 2006 Share Posted April 6, 2006 how can i to get print from my web site page.i want to javascript code... Link to comment Share on other sites More sharing options...
Siddhesh Posted April 6, 2006 Share Posted April 6, 2006 how can i to get print from my web site page.i want to javascript code...<{POST_SNAPBACK}> I think u r taking about the functionwindow.print(); Link to comment Share on other sites More sharing options...
blackpearl Posted April 6, 2006 Author Share Posted April 6, 2006 how can i to get print from my web site page.i want to javascript code...<{POST_SNAPBACK}> ok thanks,but how will i use this code. I mean ,where i will put this code.In my page has a link (link name is print page) and if user click to this link ,the page will be print this page. Link to comment Share on other sites More sharing options...
Siddhesh Posted April 6, 2006 Share Posted April 6, 2006 ok thanks,but how will i use this code. I mean ,where i will put this code.In my page has a link (link name is print page) and if user click to this link ,the page will be print this page.<{POST_SNAPBACK}> in The OnClick event of the link, or create a button, and onClick of that button u can call this function. Link to comment Share on other sites More sharing options...
blackpearl Posted April 6, 2006 Author Share Posted April 6, 2006 in The OnClick event of the link, or create a button, and onClick of that button u can call this function.<{POST_SNAPBACK}> i wrote this code;function print_page()(windows.print()<input type="submit" name="Submit" onClick="print_page()" value="print_page"> but button is not work . Link to comment Share on other sites More sharing options...
blackpearl Posted April 6, 2006 Author Share Posted April 6, 2006 i wrote this code;function print_page()(windows.print()<input type="submit" name="Submit" onClick="print_page()" value="print_page"> but button is not work .<{POST_SNAPBACK}> ok, i did. correct code;<input type="button" name="button" onClick="window.print()" value="print page">thanks your interest... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now