What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-10 02:40:09
on click unmount the component
import React, { useEffect, useState } from 'react'; import ReactDOM from 'react-dom'; function LifecycleDemo() { // Pass useEffect a function useEffect(() => { // This gets called after every render, by default // (the first one, and every... Add solution -
Other 2022-03-07 06:35:02
form submitted after output show on below the form examples
<html> <head> <script type = "text/javascript"> function write_below(form) { var input = document.forms.write.input_to_write.value; document.getElementById('write_here').innerHTML="Your input was:"+input; return false... Add solution -
Html 2022-03-07 00:10:10
auto update time in html
timer(); function timer(){ var currentTime = new Date() var hours = currentTime.getHours() var minutes = currentTime.getMinutes() var sec = currentTime.getSeconds() if (minutes < 10){ minutes = "0" + minutes } if (sec < 10){ sec ... Add solution -
Other 2022-03-06 20:40:31
javascript form validation
//form.html <!DOCTYPE html> <html> <head> <title>Javascript Onsubmit Event Example</title> <link href="css/style.css" rel="stylesheet"> <!-- Include CSS File Here--> <script src="js/ons... Add solution -
Javascript 2022-03-06 15:50:06
Javascript track mouse pointer
var pointerX = -1; var pointerY = -1; document.onmousemove = function(event) { pointerX = event.pageX; pointerY = event.pageY; } setInterval(pointerCheck, 1000); function pointerCheck() { console.log('Cursor at: '+pointerX+', '+pointerY); } Add solution -
Javascript 2022-03-06 05:25:15
pdftron file from local
JavaScript<label for="file_upload">Choose A file</label> <input type="file" id="file_upload" name="file_upload" accept=".pdf"> <div id='viewer' style='width: 1024px; height: 600px;'&g... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5