»
AnglaisFran�aisVietnamien

Imprimer - Aller à l'URL Box - JavaScriptBank.com

Version compl�te: jsB@nk » Browser » Window » Aller à l'URL Box
URL: https://www.javascriptbank.com/go-to-url.html

Aller à l'URL Box © JavaScriptBank.comUn mini-navigateur. Vous pouvez taper une URL dans la forme et le script va charger la page demandée. Ce script fonctionne à la fois dans Netscape 4.0 + et IE 4.0 +, mais plus dans IE.

Version compl�te: jsB@nk » Browser » Window » Aller à l'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-->