answersLogoWhite

0


Best Answer

Yes. JavaScript can be included inline or via script tag's src attribute (as long as the browser can find the file at the specified location.)

User Avatar

Wiki User

16y ago
This answer is:
User Avatar
More answers
User Avatar

AnswerBot

5mo ago

Yes, a static site can contain JavaScript. JavaScript can be included in a static site to add interactivity, dynamic content, and enhance user experience.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can a static site contain JavaScript?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Where can one learn javascript?

There are many places where one can learn JavaScript. One can go to the Code Avengers website or one can go to the Codeacademy site or one can go to the Code School site.


Does the external JavaScript file have to contain the script tag?

No, just the HTML file. If you include the tag, it will cause a syntax error. The best way to think of it is that the HTML file already has the tag in it, and the external JS file is inserted into the HTML file at that point, between the tags.


Can you make HTML dynamic website?

HTML is, by its very nature, static. In order to add dynamic elements, you will need to use JavaScript.


How do you add snow flakes in a site?

You can add snowflakes to a website by using CSS or JavaScript. One common approach is to use JavaScript libraries like Snowstorm.js that generate falling snowflakes on the webpage. You can easily find tutorials and code snippets online to implement this feature in your site.


What is the importance of javascript?

JavaScript can be used to add effects on the pages of web site, creating simple animations with the elements in the page. It is used to improve the page design and functionality.


What has the author Nicholas C Zakas written?

Nicholas C. Zakas has written: 'Professional JavaScript for Web developers' -- subject(s): Web site development, JavaScript (Computer program language), OverDrive, Computer Technology, Nonfiction 'Javascript Para Desarrolladores Web/javascript for Web Development (Anaya Multimedia)' 'Professional Ajax' -- subject(s): World Wide Web, JavaScript (Computer program language), Asynchronous transfer mode, Web sites, Ajax (Web site development technology), Design, Computer programs, Authoring programs, OverDrive, Computer Technology, Nonfiction 'Maintainable JavaScript' 'JavaScript and Ajax Wrox Box'


Why HTML is known as static scripting language?

It's static because once you write it it doesn't change – HTML also lacks support for dynamic interfaces and animations like the sort of things you can achieve with Flash or JavaScript.


Are the methods or members of static class static?

A static class may or may not have static members. Adding the static keyword to the class definition won't change this. Note that an inner class which is not static may not contain static members (unless those members are also declared final).


What is the type of media used for this website?

Most of this site is written in HTML, but the links to Facebook and advertisements are in JavaScript.


What is static webpage?

Static pages have no updating content, nothing moves, all stands still - hence static. This contrasts with dynamic pages. As a rule of thumb, a static web page is one that does not change its appearance, layout or content once it has been loaded. A page consisting entirely of HTML with no JavaScript or embeded content is static. One that has JavaScript is generally dynamic, as the scripting is most often in place to make slight changes to the page (or even major changes). Pages incorporating JavaScript in the HTML are generally said to be coded in "Dynamic HTML" or "DHTML" Pages that have embedded content such as movies or Adobe Flash interfaces are an exception to the model. Though the containing page itself is most often static, the embedded content behaves as a dynamic interface - one which changes, updates, etc. Strictly speaking, it's no longer a web page but a Rich Internet Application, that behaves like a web page.


What can contain two types of entries dynamic and static?

An ARP table.


What things cant HTML pages do with out Java Script?

Without JavaScript (or a similar technology) HTML pages can't do much of anything. HTML does not contain any programming logic. This means that without another tool, all an HTML page can do is display the static content encoded within it, and collect form data to be sent to the server.JavaScript allows us to make a page react to the user. All web applications are based in JavaScript, or a similar language, for precisely this reason.HTML makes pages--like the pages in a book. The difference between a webpage and a paper page is entirely owed to JavaScript, VBScript and Actionscript.