how to insert a initial value in a input javascript code example Example: default value input <input type="text" id="fname" name="fname" value="John">