Shawn Wade
Shawn Wade

Reputation: 17

Static and dynamic web page

I am in a college course and having some issues. We had a quiz that ask where a static web page is generated? The options were: a. web browser b. web server c. application server d. database server

My answer was the web server as the web browser generates nothing merely displays the http return. The professor who I'm convinced is not overly well versed in this declared the web browser as what is generating the HTML.

My next question was when a dynamic page is generated with JavaScript where is the "script" ran? With the same possible answers as above. The options were: a. web browser b. web server c. application server d. database server

My answer was the application server. I know this may be incorrect. The professor once again proclaimed the web browser was the one running the script. Please help me understand!

Upvotes: 0

Views: 134

Answers (1)

Shawn Wade
Shawn Wade

Reputation: 17

I won't confuse you with the special case of server side javascript, but javascript in general is ran in the browser. Traditional javascript is a client side language, meaning it is ran on the client's device in other words their web browser. – imvain2

Thank you the way you describe it makes sense and why the professor has the answers as such.

The key word in the first question is "generated" a static page really isn't generated anywhere. A file, like foo.html, is stored on a web server, requested by a client computer, and rendered by their browser. – j08691

This is what I was thinking and my reasoning for answering the web server is what is producing the HTML Doc.

Upvotes: 1

Related Questions