« Modèle:GLFindexEn » : différence entre les versions


Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
<html>
<html>
Commencer à partir de ces premières letres:
Commencer à partir de :
<input name="searchTxt" type="text" maxlength="12" id="searchTxt" class="searchField"/>
<input name="searchTxt" type="text" maxlength="12" id="searchTxt" class="searchField"/>


<script type="text/javascript">
<script type="text/javascript">
//creates a listener for when you press a key
window.onkeyup = keyup;
window.onkeyup = keyup;
//creates a global Javascript variable
var inputTextValue;
var inputTextValue;


function keyup(e) {
function keyup(e) {
  //setting your input text to the global Javascript Variable for every key press
   inputTextValue = e.target.value;
   inputTextValue = e.target.value;
  //listens for you to press the ENTER key, at which point your web address will change to the one you have input in the search box
   if (e.keyCode == 13) {
   if (e.keyCode == 13) {
     window.location = "https://datafranca.org/wiki/index.php?title=Cat%C3%A9gorie:ENGLISH&pagefrom=" + inputTextValue;
     window.location = "https://datafranca.org/wiki/index.php?title=Cat%C3%A9gorie:ENGLISH&pagefrom=" + inputTextValue;
Ligne 21 : Ligne 14 :
}
}
</script>
</script>


<center  style="font-weight:bold;  font-size:26px; ">
<center  style="font-weight:bold;  font-size:26px; ">

Version du 13 avril 2021 à 16:33

Commencer à partir de :

A B C D E F G H I J K L M N O P Q R S T U V WXYZ