<p align="center"><font size="5" color="#FF0000">SEARCH</font><br><br>
<font size="3">Enter Name To Search For</font>
<p align="center"><input type="text" id="page" />
<input type="submit" value="submit" onclick="goToPage();" /></a></p><br><br><br><br><br>
</p>
</html>
<script type="">
function goToPage() {
var page = document.getElementById('page').value;
window.location = "http://192.168.0.101/" + page + ".htm";
}
</script>
i have that above and it does most of what i want, but what do i need to add to make it remove the spaces from the name and then check to see if the link exists or not?
Actually, you don't need to close them since if you don't, the closing tag is implied. But if you do close them you need to do it right.
That said, I also think you *should* close paragraphs, but a validator won't mark it as an error if you don't. The validator will find quite a few errors with the way you've done it though.
yea, i been adding bits and pieces of tutorials to an existing simple web site i made like 20-30 years ago.
i have no idea how to do html these days
I've never done this myself but I think you could use Javascripts FileReader API to check if the file exists. At least it might be worth looking into.
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)