Disable auto refresh of page | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Disable auto refresh of page

how can I disable page refresh when I click on the button or after generating an alert ()?

26th Feb 2018, 9:20 PM
Zer0xF
Zer0xF - avatar
1 Answer
+ 2
Whenever an alert, prompt or confirm is made on the document, the browser must refresh to get the input and use it. this default behavior cannot be altered
26th Feb 2018, 9:54 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar