I am very new to Javascript and I am having difficulty figuring out how to stop it after running first time. I have a simple refresh function and I want it to run once onLoad. Now it keep running. I would appreciate it if you can tell me how to stop it after the first run. Thank you.
<script>
function reload(){
location.reload();
}
</script>