»
EnglishFrenchVietnamese

Print - Go To URL Box - JavaScriptBank.com

Full version: jsB@nk » Browser » Window » Go To URL Box
URL: https://www.javascriptbank.com/go-to-url.html

Go To URL Box © JavaScriptBank.comA mini-browser. You can type a URL in the form and script will load the requested page. The script works in both Netscape 4.0+ and IE 4.0+, but best in IE.

Full version: jsB@nk » Browser » Window » Go To URL Box
URL: https://www.javascriptbank.com/go-to-url.html



JavaScript
<SCRIPT language=JavaScript type=text/javascript><!-- function GoToURL(j) {  window.status=('Connecting....')  var URLis; URLis = document.URLframe.Dest.value     if (URLis == "" || URLis.length <= 8)           {      j.value = "Try Again"      alert('\nOops!\n\nYou 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><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<FORM name=URLframe><TABLE align=center border=0>  <TBODY>  <TR>    <TD vAlign=center align=middle><BR><FONT face="Arial, Helvetica"       color=#ff0000 size=+1><B>http://</B></FONT><INPUT maxLength=50 size=50       name=Dest></TD></TR>  <TR>    <TD align=middle>      <P><INPUT onclick=GoToURL(this) type=button value="                       Go to..                                " name="Go to"></P></TD></TR></TBODY></TABLE></FORM><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->