Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Material Type: Notes; Class: INTRO INFO TECHNOLOGY; Subject: Computer Science; University: University of Maryland; Term: Unknown 1989;
Typology: Study notes
1 / 15
It can send the contents of forms to a server and e-mailaddresses It can cause the browser to load a web page ^ JavaScript is not Java, however …^ ^ JavaScript program constructs are similar to Java’sconstructs (in many cases identical)^ ^ JavaScript can interact with java programs
.js
^ We use document.writeln to create the page contents ^ Notice the html tags present in the writeln
.js
Embedding JavaScript in HTML ^ Different ways to embed JavaScript in HTML^ ^ By using tags in the html document^ ^ From an external file (specified via URL) using the srcattribute of the script tag^ ^
(See Example2.html)
attribute allows you to specify a JavaScript version to use (e.g.,