sorry for not getting back to it sooner... been busy today
Code:
<form name="openlocation">
<input type="text" name="href">
<input type="button" value="Go To" onClick="location.href=document.openlocation.href.value + /statistics/;">
</form>
However they need to put the
http:// so it knows it's an external address otherwise it will try to load it on your site.
E.g.
http://www.yoursite.com/theresite.com/statistics/
So, insert the
http:// for them...
Code:
<form name="openlocation">
<input type="text" name="http" >
<input type="button" value="Go To" onClick="location.href='http://' + document.openlocation.http.value + /statistics/;">
</form>
If they just use www. or no www. it's fine, however if they include the
http:// then you'll get issues, so it should be stripped prior to proceeding to the location, unfortunatly my javascript knowlege isn't that good.
But i'll look into it
And as for checking to see if the domain is entered incorrectly, can you elaborate on this a bit?
Because i can already interperate it in a few different ways =/