<script type="text/javascript">
$('.historyText').live('input paste', function(e) {
var paste = e.clipboardData && e.clipboardData.getData ?
e.clipboardData.getData('text/plain') : // Standard
window.clipboardData && window.clipboardData.getData ?
window.clipboardData.getData('Text') : // MS
false;
alert(paste);
});</script>
or
document.addEventListener('paste', function(e) {
var html = e.clipboardData.getData('text/html');
// Whatever you want to do with the html
}
or
$(document).bind('paste', function(e) {
var clipboardData = e.originalEvent.clipboardData;
});
Code Example |
---|
Html :: filter vhtml vue |
Html :: html marquee tag |
Html :: blobs fish |
Html :: show and hide divs based on radio button click |
Html :: meta tag checker |
Html :: html video frame image |
Html :: how to change submit button size in html |
Html :: cant pass multipule select input bootstrap |
Html :: multiple countdown html js |
Html :: tailwind css floating label |
Html :: add map in html |
Html :: bootstrap login |
Html :: h1 html |
Html :: pop up animation css |
Html :: html form using http |
Html :: replit iframe |
Html :: how to make bold text in html |
Html :: th colspan html |
Html :: email full width images |
Html :: pdf to html converter |
Html :: html table header |
Html :: twig lower |
Html :: table bootstrap dark |
Html :: liens hypertexte html mdn |
Html :: request html nodejs |
Html :: html with emoji |
Html :: preload html |
Html :: deactivate routerlinkactive |
Html :: image sourceset statamic glide |
Html :: high load linux |