I'm trying to make a simple bar where one can input a URL to make a frame go to that URL. It works, except that if one doesn't include http:// before it it gives a 404 error. How do I make it so that it always includes http:// in a URL? For example...
Someone types google.com. It sends the URL as http://google.com instead of trying to access a file on the site such as www.mysite.com/google.com.
This is what I have so far...
<script type="text/javascript">
function showurl(){
if (document.getElementById('qkw').value != "")
parent.content.location.href = document.getElementById('qkw').value;}
</script>
How would I redo that so it would include http:// no matter what you typed? I tried using a variable but I couldn't get that to work either.
|