0
how could this be used in an html website?
I'd like to know where this particular function could be used...
2 Answers
+ 3
do you mean "how can you use functions and the DOM"?
if that's the case, then one of the most obvious is if you were to make a blog. rather than update it by going into the sites html file and using <article> or whatever tag you've used, and follow it up by typing out your latest post, you can simply write a function to do this for you from the online page.
think how easy it is to post of Facebook vs write a post in html.
+ 3
e.G. for animations by changing the size of an Element in a for-loop.