Jump to content

Philip

Members
  • Posts

    3
  • Joined

  • Last visited

Philip's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I wasn't only talking about the "this" keyword since I know about it from other programming languages, i was talking about different tips and tricks such as "this", I'm sure there are other things like it that could help with passing variables into functions or different tricks that are helpful to know. I just wanted to know if w3schools has a tutorial somewhere about it, and if not I will google it.
  2. Thanks Don E, it works perfectly! Is there any place on w3schools that I could learn different tips and tricks such as using the "this.form", or would I have to go elsewhere?
  3. I am new to html and I am doing a little project to test myself in html by trying to make a table, but making it so that the user says the number of rows and columns in the table. I currently have everything worked out using javascript, and the table works with inputting values within the html file: like the function is table(rows,cols) and doing <button type="button" onclick="table(1,2)">Make Table</button> works. My problem is that with user input, I'm not to sure how to have the user input the number of rows and columns, and then for me to store the numbers then use them in the function. Normally in other languages I could store it as a variable then pass it into the function, but I don't know if that is possible with html. All the html and javascript is in one file, since it is just a small thing I want to try, and I wasn't sure if could use <form> for this or how it would work.Thanks for the help, and the tutorials have helped me a lot so far.
×
×
  • Create New...