joe92 Posted November 15, 2011 Share Posted November 15, 2011 Using JavaScript, is there a way to force the submission of a key combination? Reason I ask is because there are a few functions I would like to be able to offer but can't currently find a good/working way to do them, or they have really bad cross browser compatibility issues. E.g. A button to copy the current selection to the clipboard by forcing Ctrl + C, another would be an undo button by forcing Ctrl + Z, and a button to bookmark the current page by forcing Ctrl + D. Thanks for any help, Joe Link to comment https://forums.phpfreaks.com/topic/251197-is-there-a-way-to-force-the-submission-of-a-key/ Share on other sites More sharing options...
nogray Posted November 16, 2011 Share Posted November 16, 2011 You can't force a button to be pressed in javascript. However, there is an alternative for everything you asked for. Just google it (e.g. javascript copy to clipboard) Link to comment https://forums.phpfreaks.com/topic/251197-is-there-a-way-to-force-the-submission-of-a-key/#findComment-1288578 Share on other sites More sharing options...
joe92 Posted November 16, 2011 Author Share Posted November 16, 2011 I have done. Take the bookmark function I mentioned. The only one I found that seems to work ok (still has problems) wants a licence fee of $25 per website to use and it's not very dynamic After exhausting my researching and testing, I wondered about forced key submissions as that would solve all my problems haha. Thanks for letting me know. Link to comment https://forums.phpfreaks.com/topic/251197-is-there-a-way-to-force-the-submission-of-a-key/#findComment-1288640 Share on other sites More sharing options...
ZulfadlyAshBurn Posted November 16, 2011 Share Posted November 16, 2011 take a look at this one link i'm not sure if this is what you wanted. but i'm assuming you are looking for this. Link to comment https://forums.phpfreaks.com/topic/251197-is-there-a-way-to-force-the-submission-of-a-key/#findComment-1288641 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.