Search
 
SCRIPT & CODE EXAMPLE
 

HTML

php prevent form resubmission


<!---
Add this to your HTML and it will prevent a pop up.
Found the answer from the link below.
https://stackoverflow.com/questions/6320113/how-to-prevent-form-resubmission-when-page-is-refreshed-f5-ctrlr
--->

<script>
if(window.history.replaceState) 
{
	window.history.replaceState(null, null, window.location.href);
}
</script>
Comment

PREVIOUS NEXT
Code Example
Html :: html href phone call 
Html :: applying padding increases the size of the element 
Html :: swiper js arrows 
Html :: html color names 
Html :: html text decoration 
Html :: check if javascript is enabled 
Html :: html color maroon hex 
Html :: how to write floating point numbers in html5 input 
Html :: html text cut 
Html :: remove space table html 
Html :: how to add datepicker in bootstrap(html form) 
Html :: phone icon html 
Html :: corner radius edittext android 
Html :: ordered list 
Html :: prevent image saving in html 
Html :: html cursief 
Html :: laravel blade remove html tags 
Html :: capture textarea value 
Html :: input only accept numbers 
Html :: how to add two radio button in html 
Html :: bootstrap search 
Html :: input disable autocomplete 
Html :: html table multiple headers 
Html :: javascript remove the current tr with click 
Html :: html meter change color 
Html :: add favorite icon to website html 
Html :: content editable 
Html :: img html 
Html :: table row html 
Html :: CKEditor in vanilla javascript 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =