Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function funcKeyUp(){
- var name = document.getElementById("oldName");
- document.getElementById("newName").innerHTML = oldName;
- }
- Enter name: <input type="text" name="oldName">
- <button type="button" onclick="funcKeyUp()"> submit name </button> <br>
- <p id="newName"></p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement