Javascript will not pass information into function from html -
ok new javascript. trying learn code changing text on button using external javascript file. can't javascript read buttons valueexternally, in chrome's debug tools see button value btn="". reads button object can't read properties. <html> <head> <title> test </title> <script type="text/javascript" src="gle.js"></script> </head> <body> <div><canvas id="gle" width="800" height="600"></canvas> </div> <div> <h2>enter mass , coordinates</h2> <input id="txtbox" type="text" /><br/> <button id="btn" onclick="change()">add</button> </div> </body> </html> the gle.js "use strict"; function change() { var x = document.getelementbyid("btn").value; var elem = documen...