About 439,000 results
Open links in new tab
  1. How can I clear the screen with javascript? - Stack Overflow

    Apr 1, 2012 · How can I clear or refresh the page in the browser using javascript? I have a loop that prints a string to the page each second and I want to clear the screen each time it …

  2. function - Clear calculator display javascript after calculation ...

    Apr 14, 2021 · I'm doing a beginner calculator project in JavaScript, and I'm trying to figure out a way to clear the display on the start of a new calculation. For example: If I now want to start a …

  3. clearing the display in a javascript calculator after pressing

    Dec 17, 2020 · display.value = eval(display.value); //if any key except "=" pressed again clear display. button.addEventListener('click',clearDisplay); } else if (clickedButtonValue === 'C') { …

  4. JavaScript console.clear() Method - W3Schools

    The clear() method clears the console. The clear() method also write "Console was cleared" in the console.

  5. how to clear screen and display new stuff - Javascript | Tek-Tips

    Nov 22, 2001 · I create a javascript function where the button go to this function and uses document.write to display the details. but, I was wondering how to clear the screen and then …

  6. A simple JavaScript calculator - Anaesthetist

    JavaScript for the Clear Buttons: function Clear() //CLEAR ENTRY { Current = "0"; document.Calculator.Display.value = Current; } function AllClear() //Clear ALL entries!

  7. Clear Button Calculator Syntax - CodePal

    The following JavaScript function allows you to create a clear button calculator by providing a syntax that clears the display. This function sets the value of the calculator display element to …

  8. Clear Canvas in JavaScript (Example With Button) – 5k.io

    Dec 16, 2022 · To clear a canvas element in JavaScript, you can use the clearRect method of the canvas’s 2D rendering context. // Get the canvas's 2D rendering context const ctx = …

  9. javascript - JS - How to return a calculation and clear the display ...

    You have to add the clearDisplay function: function clearDisplay(){ display.value = ""; } Also you have to ask if the operator selected is equal (=). You can't add the = symbol to the input. Then …

  10. Reset or Clear a Form Using JavaScript - Online Tutorials Library

    Learn how to reset or clear a form using JavaScript with step-by-step examples and code snippets.

  11. Some results have been removed
Refresh