I think I can call the window. Print () When the page loads to print the print dialog, but I can force the window to reduce it from the point that it has been opened and print dialogue is generated? Ideally it will be minimized as long as the user does not maximize. Thanks
short answer: no.
Brief answer: If you try to open windows and then play in javascript, then you have antispam tool against you.
But ... you can use the help of @Media Print {} in CSS. Add a div with the content in which you want to print on the page (and load it through Ajax, or using an iframe). Using the "@Media Print" rules in CSS, you can ask the browser to hide the page that the user is viewing in the browser (by adding it to a large div and adding a display: none by the print rule) and Show Hidden Dives The best part of this solution is that you can play with both divs through javascript, for example you can show / hide print div, etc. Ton can add.
Comments
Post a Comment