Ctr+s event on clicking a hyperlink
I have a hyperlink, when i c开发者_StackOverflow社区lick this link Ctr+s event should be fired which results in prompting to save the webpage. How can i call Ctr+s event when clicking a link I needs this in javascript or jquery
add onClick
event same as Ctrl
+S
. Don't return false in onClick
I believe this works in ie.
<a href="javascript:void(0);" onclick="document.execCommand('SaveAs');"
>Save this page</a>
精彩评论