To print url after a link in CSS you can use the following snippet.
When printing the page each link has its ahref target appended surrounded by Parentheses.
Sample CSS
@media print { a:after { content: " (" attr(href) ") "; } }
To print url after a link in CSS you can use the following snippet.
When printing the page each link has its ahref target appended surrounded by Parentheses.
@media print { a:after { content: " (" attr(href) ") "; } }
To print the page in Javascript you can use the following snippet.
<input type="button" value="Print Page" onclick="window.print()" />
To take a screenshot in Java you can use the following snippet.
BufferedImage bufferedImage = new Robot().createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize())); ImageIO.write(bufferedImage, "png", new File("C:\screenshot.png"));
for more informations see BufferedImage, ImageIO, Toolkit: getScreenSize(), Robot