« Test video » : différence entre les versions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
$(function () { | |||
function goTo() {window.location = document.forms[0].where.value ; return false;} | |||
function goTo() {window.location = document.forms[0].where.value ; return false;} | |||
myElement.innerHTML = '<form action="" method="post" onsubmit="return goTo()"> | |||
<form action="" method="post" onsubmit="return goTo()"> | |||
<input type="text" name="where" value="Enter page number" onfocus="if(this.value == this.defaultValue) this.value = '';" onblur="if(this.value == '') this.value = this.defaultValue;"> | <input type="text" name="where" value="Enter page number" onfocus="if(this.value == this.defaultValue) this.value = '';" onblur="if(this.value == '') this.value = this.defaultValue;"> | ||
<input type="submit" value="Go"> | <input type="submit" value="Go"> | ||
</form> | </form>'; | ||
}()); | |||
Version du 4 avril 2021 à 09:53
$(function () { function goTo() {window.location = document.forms[0].where.value ; return false;}
myElement.innerHTML = '<form action="" method="post" onsubmit="return goTo()"> <input type="text" name="where" value="Enter page number" onfocus="if(this.value == this.defaultValue) this.value = ;" onblur="if(this.value == ) this.value = this.defaultValue;"> <input type="submit" value="Go"> </form>'; }());
Contributeurs: wiki