What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-03 07:17:02
create video playlist using jquery
function handler(e) { e.preventDefault(); videotarget = this.getAttribute("href"); filename = videotarget.substr(0, videotarget.lastIndexOf('.')) || videotarget; video = document.querySelector("#video_player video"); video.removeA... Add solution -
Javascript 2021-09-02 09:41:02
ajax post rest api example
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery.post demo</title> <script src="https://code.jquery.com/jquery-1.10.2.js"></script> </head&g... Add solution -
Javascript 2021-08-28 01:36:01
[Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL> [Violation] 'setTimeout' handler took 59ms
jQuery.event.special.touchstart = { setup: function( _, ns, handle ) { this.addEventListener('touchstart', handle, { passive: !ns.includes('noPreventDefault') }); } }; jQuery.event.special.touchmove = { setup: function( _, ns, handle )... Add solution -
Javascript 2021-08-26 22:27:01
preventdefault on back in vuejs
<script>export default { // ... beforeMount() { window.addEventListener("beforeunload", event => { if (!this.isEditing) return event.preventDefault() // Chrome requires returnValue to be set. event.returnValue =... Add solution
Best helpers
Daniel Cook
+5
Czlsws
+5
Shahruz Raad
+5
Horse
+5
Csandreas1
+5
SOUMEN
+5
Vy32
+5
Anugram
+5
ImMathan
+5
Joyo
+5
Huggy Buggy
+5