...

View Full Version : Onclick button which saves contents of the clipboard to a specific folder.



Hogan1
05-18-2012, 03:28 PM
Hi all, I have been searching for quite a while for a solution to this but I have no no luck.

This is what I have currently


<html>
<script>

function doSaveAs(){
if (document.execCommand){
document.execCommand("SaveAs")
}
else {
alert("Save-feature available only in Internet Exlorer 5.x.")
}
}
</script>
<form>
<button onClick="window.location='http://192.168.0.105/now.jpg'"> Snapshot</button>
</form>
<br>
</html>

When the button is clicked it saves a jpg image off a camera and opens a save as dialog box.

Is it possible to do this but saving the contents of the clipboard?

felgall
05-18-2012, 09:29 PM
What browser are you trying to run that in? Code like that will only run in old versions of Internet Explorer (or newer versions of Internet Explorer if you turn off some of the security settings).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum