aswath_t 0 Report post Posted October 20, 2008 i need to print all my five html pages in my website by clicking single buttonand i used the javascript to print the current page. but i need to print all the five pages at a time. help me out. Share this post Link to post Share on other sites
shadowx 0 Report post Posted October 20, 2008 I dont really write Javascript but could you do something like:print page onedocument.location = pagetwo.htmprint page twodocument.location = pagethreee.htmprint page threeand so on? Share this post Link to post Share on other sites
aswath_t 0 Report post Posted October 20, 2008 tanx buddy i'll try this method. whether this command will work in java script?. or shall i use PHP ? Share this post Link to post Share on other sites
shadowx 0 Report post Posted October 20, 2008 You would have to use Javascript i think, but as i said i dont know much javascript so i cant do it for you. If you know javascript than make some code that does what i described and it should work i think. Im not sure though, it was just an idea! Share this post Link to post Share on other sites
galexcd 0 Report post Posted October 20, 2008 Why don't you make single html webpage and put the content for all five pages on that webpage? You could space them out to actually print out on five separate pieces of paper. As a user I'd rather press print on the confirmation once than have to hit the print button 5 times to print it out. Share this post Link to post Share on other sites
aswath_t 0 Report post Posted October 21, 2008 good idea.. but i can't do so.because the website is hosted and the user want the brochure means they need to take print out from the site itself. so i give one link that "print Brochure" on all the five pages and i gave the code to print current page. then any body click that link it will print only the current page. all i need to make a code to print all the five page by clicking that link in every page.. try to give me some solution.. your last idea is done.but its temp solution.. tanx for that. make some other idea to done for permanent solution. Share this post Link to post Share on other sites
galexcd 0 Report post Posted October 24, 2008 I'm sorry but I don't see why my solution can't be a permanent solution. Why don't you make a link that runs a script in javascript to open a different page with the content of all five pages on it, prints it and closes that page. Share this post Link to post Share on other sites