What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-20 10:51:49
javascript auto save input
var saveTimeoutId; document.addEventListener("DOMContentLoaded", () => { // Get the element(s) you want to autosave let area = document.getElementById('area'); // use keyup over keypress so that backspaces will register area.addEv... Add solution -
Javascript 2021-11-14 03:52:10
tinymce count characters
tinymce.PluginManager.add('charactercount', function (editor) { var self = this; function update() { editor.theme.panel.find('#charactercount').text(['Characters: {0}', self.getCount()]); } editor.on('init', function () { var statusbar =... Add solution -
Javascript 2021-11-12 18:06:14
change the focus to next in angular forms
import { Directive, ElementRef, HostListener, Input } from '@angular/core'; @Directive({ selector: '[moveNextByMaxLength]' }) export class MoveNextByMaxLengthDirective { constructor(private _el: ElementRef) { } @HostListener('keyup', ['$event']) onKeyD... Add solution -
Javascript 2021-10-20 23:01:08
add javascript keyup on input
<input type="text" class="form-control" placeholder="Search" id="search_id"/> <script type="text/javascript"> const log = document.getElementById('search_id'); document.addEventListener('keyup'... Add solution -
Javascript 2021-10-20 11:38:08
HTML5 Accesskey Attribute: you may not need JavaScript to add Keyboard Shortcuts
// Register the key handler document.addEventListener('keyup', function(e){ // This would be triggered by pressing CTRL + A if (e.ctrlKey && e.keyCode == 65) { window.location.href = "http://ourcodeworld.com"; } ... Add solution
Best helpers
Mathily
+5
Awinnefeld
+5
Aspiring24
+5
Oliver
+5
AvenueBazzar
+5
Jo mat
+5
Ondrej Tokar
+5
Yochai
+5
StrixVaria
+5
HoratioCain
+5
Yaje
+5
Coderzelf
+5
Amdopt
+5
Jn1kk
+5
Jayden Meyer
+5
Meryllee
+5
RKG
+5
WeberEInc
+5
Kelly Hess
+5
GradStudent
+5