URL to Go

[Total: 0    Average: 0/5]

This allows the user to enter in a url and then click go.

Head Code:

<SCRIPT language=JavaScript>
 function GoToURL(j) {
  window.status=('Connecting....')
  
var URLis;
 URLis = document.URLframe.Dest.value
  
   if (URLis == "" || URLis.length <= 7)
           { 
     j.value = "Try Again"
      alert('nOops!nnYou must enter a valid URL');
         window.status=('Missing data or Invalid. Try again?.')
           } 
    else
        {
 j.value = "Connecting to: http:\" + URLis   
 var location=("http://" + URLis);
         this.location.href = location;
window.status=('Connecting to ' + URLis + '  Please wait........');
        }
        }
</SCRIPT>

Body Code:

            <FORM name=URLframe>
http://<INPUT maxLength=50 name=Dest size=55><br>
<INPUT onclick=GoToURL(this) type=button value="    Go to..   " WIDTH="50">
</form>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *