For my Science Fair project I need to be able to find out how long a website takes to load every 10 seconds. The issue is I'm not sure how to load the website and check how long it takes to load. So far I've made a program that just tells you what you typed in a text box, all I need now is just how to check the website's load time. -Thank you in advance Here is the code
<html>
<body id='body'>
<p>Website Checker</p>
<textarea id='websiteurl' rows="1" cols="50"></textarea><br>
<button onclick="checkhowlongittakes()">Input!</button>
</body>
</html>
<style>
#body {
background-color: coral;
}
</style>
<script>
document.getElementById('websiteurl').value = 'Input the url here'
function checkhowlongittakes() {
weburl = document.getElementById('websiteurl').value
//Checkhowlongthewebsitetakestoload(weburl)
}
</script>