I am a beginner in javascript ,I would to disable a html button forever after a click but my problem is when i refresh the web page the button return enabled
My code
<script type="text/javascript">
function fn(){
var t=document.getElementById("butn").disabled = true;
}
</script>
<body>
<input type="submit" value="ok" class="btn btn-default" id="butn"
onclick="fn()"/>
</body>
thank you