1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Race Condition</title> <script language=javascript> window.onload = (event) => { var textobj = document.getElementById("stuff"); textobj.value = "Hello World"; }; </script> </head> <body> <input type="text" id="stuff"/> </body> </html>