Test video
$(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