Javascript help
#1
How do I make it possible for a user of the site to input the values? 
I get I have to use <input> with a form but I can't get the js to reference the name, id or action. 
Is php the solution?

Code:
<html><body><script>

var height = 140
var storySize = 2.8

var getStories = function(storyCount){

    storyCount = height / storySize
    
    console.log("The height of the building is " + height + "m")
    console.log("The building has " + Math.trunc(storyCount) + " stories")
    console.log("the height of each story is " + storySize +"m")
    


getStories()





</script>





</body>
</html>
If I can get help solving this I will give whoever solves it 150,000$ ig 
I have tried 2 days now on and off.
[Image: h2.png]
Visit my profile here.


Messages In This Thread
Javascript help - by Haarek - 05-27-2019, 11:28 AM
RE: Javascript help - by Luna - 05-27-2019, 12:10 PM
RE: Javascript help - by Haarek - 05-27-2019, 12:38 PM
RE: Javascript help - by dawson270500 - 05-29-2019, 03:01 PM
RE: Javascript help - by Haarek - 06-02-2019, 09:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)