JavaScript: How To? B. Ramamurthy.

Slides:



Advertisements
Similar presentations
Hyper Text Markup Language.  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is not a programming language,
Advertisements

HTML syntax By Ana Drinceanu. Definition: Syntax refers to the spelling and grammar of a programming language. Computers are inflexible machines that.
JavaScript Teppo Räisänen LIIKE/OAMK HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.
DHTML: Dynamic HTML Internet Technology1. What is DHTML? A collection of enhancements to HTML ► To create dynamic and interactive websites Combination.
Javascript: More features B. Ramamurthy 7/4/2014B. Ramamurthy, CSE651C1.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
Title, meta, link, script.  The title looks like:  The tag defines the title of the document in the browser toolbar.  It also: ◦ Provides a title for.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Basic HTML PowerPoint How Hyper Text Markup Language Works
TUTORIAL 10: PROGRAMMING WITH JAVASCRIPT Session 2: What is JavaScript?
Introduction.  The scripting language most often used for client-side web development.  Influenced by many programming languages, easier for nonprogrammers.
JavaScript Syntax, how to use it in a HTML document
HTML JAVASCRIPT. CONTENTS Javascript Example NOSCRIPT Tag Advantages Summary Exercise.
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
HTML Elements: Forms and Controls Chapter 9 B. Ramamurthy.
Basic HTML Page 1. First Open Windows Notepad to type your HTML code 2.
Source of website: “Text/css rel=“styles heet” This is an external style sheet link. This means that the.
Introduction to JavaScript MIS 3502, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 9/29/2016.
HTML Structure & syntax
Pertemuan 1 Desain web Pertemuan 1
Getting Started With HTML
Week-12 (Lecture-1) Cascading Style Sheets (CSS): describe how documents are presented on screens. Types of Style Sheets: External Style Sheet - Define.
Web Basics: HTML/CSS/JavaScript What are they?
Using JavaScript to Show an Alert
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
CIS 388 Internet Programming
Week 4: Introduction to Javascript
JavaScript is a programming language designed for Web pages.
Concepts of HTML, CSS and Javascript
Intro to JavaScript CS 1150 Spring 2017.
Basic HTML PowerPoint How Hyper Text Markup Language Works
Intro to Web Development Class A Review
Intro to CSS CS 1150 Fall 2016.
Highly Engaging and Dynamic Data-driven Visualization with Javascript
Introduction to JavaScript
Intro to CSS CS 1150 Spring 2017.
Basic HTML PowerPoint How Hyper Text Markup Language Works
Introduction to JavaScript
JavaScript an introduction.
DHTML Javascript Internet Technology.
A second look at JavaScript
Your 1st Programming Assignment
Introduction to Web Page Design
Of HTML, CSS and JavaScript
Introduction to JavaScript
Introduction to JavaScript
Introduction to JavaScript
DHTML Javascript Internet Technology.
Introduction to JavaScript
Unit 6 part 3 Test Javascript Test.
Introduction to HTML5.
Javascript.
Introduction to Web Application Design
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Web Application Development
Introduction to JavaScript
CIS 133 mashup Javascript, jQuery and XML
Tutorial 10: Programming with javascript
JavaScript Basics What is JavaScript?
Pertemuan 1 Desain web Pertemuan 1
HTML and CSS Basics.
Introduction to Web Application Design
Introduction to JavaScript
Introduction to JavaScript
Week 5: Recap and Portfolio Site
Web Programming and Design
Introduction to Web programming
© 2017, Mike Murach & Associates, Inc.
Presentation transcript:

JavaScript: How To? B. Ramamurthy

Structure – Style -- Interaction HTML provides structure CSS provides style Javascript (script) provides control for interaction and operations

Simple JS <!DOCTYPE html> <html> <head> <title> My first JavaScript </title> </head> <body> <h1> <script> document.write(“Hello, World!”); </script> </h1> </body> </html>

JS functions A function consists of function followed by the name of the function The statement that make up the function go next within curly brackets Example: function saySomething() { alert(“ We are getting ready for the exam 1”); }

Moving JS to an external file Similar to how we separated style elements in css file, behavioral elements can be moved to an external js file.

HTML with External File JS <!DOCTYPE html> <html> <head> <title> My second JavaScript </title> <script src=“script2.js”></script> </head> <body> <h1 id=“helloMessage”> </h1> </body> </html>

JS file window.onload = writeMessage; function writeMessage(){ document.getElementById(helloMessage).innerHTML = “Hello, World!”; }

Basic Elements of a web page Web browser Firefox, Safari .html file .css file displays interprets image and audio files .js Prepare/edit files