»
AnglaisFran�aisVietnamien

Imprimer - Type de mots clés à visiter - JavaScriptBank.com

Version compl�te: jsB@nk » Lien » Type de mots clés à visiter
URL: https://www.javascriptbank.com/keyword.html

Type de mots clés à visiter © JavaScriptBank.comPour visiter la page, vous devez taper une adresse.

Version compl�te: jsB@nk » Lien » Type de mots clés à visiter
URL: https://www.javascriptbank.com/keyword.html



JavaScript
<script language="Javascript">//Declare variables.var j = 0;var LowerCaseKey;var Keyword = new Array();var KeyURL = new Array();        //This array is for the keywords.       Keyword[0] = "google";Keyword[1] = "jsbank";Keyword[2] = "yahoo";//This array is for the sites/pages associated with your keywords.KeyURL[0] = "http://javascriptbank.com";KeyURL[1] = "http://google.com";KeyURL[2] = "http://yahoo.com";//Check to see if keyword exists, and if it does, take them to that page.function findKeyword() {for (j=0; j<=Keyword.length; j++){LowerCaseKey = document.form.keyword.value.toLowerCase();if (LowerCaseKey == Keyword[j]) window.location = KeyURL[j];}}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form name="form"><ul>Type your choices<br> <li><b><i>jsbank</i></b> to visit JavaScriptBank.com <li><i><b>google</b></i> to visit Google</li> <li><b><i>yahoo</i></b> to visit Yahoo<br><br></ul>Enter Keyword:<input type="text" name="keyword" size="15">&nbsp;<input type="button" value="Go" onclick="findKeyword()"></form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->