I'm a newbee in javascript and i need to refresh page when script is done:
<script type="text/javascript">
function validateForm() {
var x = document.forms["myForm"]["Hostname"].value;
if (x == "" || x == null) {
alert("Name must be filled out");
return document.location.reload(true);
}
}
</script>
But i don't understand how to make it work.