View Single Post
Old 10-18-2023, 09:59 PM  
2MuchMark
Videochat Solutions
 
2MuchMark's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: Canada
Posts: 48,988
Quote:
Originally Posted by lakerslive View Post
To any devs here, can AI or scripts detect if a paragraph entry into a form/field

was done via TYPING or COPY and PASTE method? ty
Of course! You can use JavaScript to list to specific events that are triggered during user interaction with input fields. You can listento Keydown/Kepress events, and you can listen for paste events.

Try this:

Code:
// Get input element
var input = document.getElementById('myInput');

// Listen for keydown
input.addEventListener('keydown', function(event) {
    console.log('User is typing');
});

// Listen for copy-paste 
input.addEventListener('paste', function(event) {
    console.log('User pasted some text');
});
__________________

Custom Coding | Videochat Solutions | Age Verification | IT Help & Support
www.2Much.net
2MuchMark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote