Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Source code of One click screenshot of any webpage: https://gauravtiwari.org/snippet/one-click-screenshot-of-any-webpage/
<!DOCTYPE html>
<html lang="en-US" prefix="og: http://ogp.me/ns#">
<head>
<title>One click screenshot of any webpage</title>
<meta name="description" content="Get a one to two click screenshot of any webpage in .png. Download and use it on blogs and websites." />
<meta name="robots" content="follow, index, , max-snippet:-1, max-video-preview:-1, max-image-preview:large" />
</head>
<body>
<form id="your_form" onsubmit="yourFunction()" target="_blank">
<input type="url" name="url">
<input type="submit" value="Submit">
</form>
<script type="text/javascript">function yourFunction(){
var action_src = "https://s0.wordpress.com/mshots/v1/" + document.getElementsByName("url")[0].value;
var your_form = document.getElementById('your_form');
your_form.action = action_src ;
}
</script>
<hr>
Source: <a href="https://gauravtiwari.org/snippet/one-click-screenshot-of-any-webpage/">https://gauravtiwari.org/snippet/one-click-screenshot-of-any-webpage/</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment