1 / 12

Understanding HTML and JavaScript: A Dive into Web Design and Interactivity

This article explores the fundamental aspects of HTML and JavaScript in web design, tracing their historical development and functionality. It discusses the static nature of HTML, limitations such as lack of user detection and real-time date handling, and the evolution and impact of JavaScript, created by Brendan Eich in 1995. JavaScript's role in enhancing interactivity through browser control, user input validation, and menu generation is highlighted. Readers will gain insights into how these technologies have shaped the internet experience and the practical uses of JavaScript today.

vinaya
Télécharger la présentation

Understanding HTML and JavaScript: A Dive into Web Design and Interactivity

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. JavaScripts

  2. Web design history • HTML code taken in and interpreted by the user’s machine on initial load • Static in nature • Not “static/dynamic” but singular scan static

  3. Immediate Problems • No “checking” functionality • Database writing • Many pages for multiple menus • Example (FGCU Alico Arena) • No User OS/Browser Detection

  4. Additional HTML Limitations • No access to browser interface • No real date/time handling • Cannot create or access “Pseudo registry” files (ie: cookies) • Cannot verify field input

  5. Overall Interactivity At this point HTML pages are basically electronic Newspapers. Display only.

  6. JavaScripts - Basic Definition • Created by Brendan Eich. • First implemented by Netscape Navigator 2 Beta in 1995 to make newly added support for Java applets more accessible to non-Java programmers and web designers. • Originally known as “LiveScript” called JavaScript for marketing.

  7. Basic Info • JavaScript programs, or Scripts, are often directly embedded in HTML pages and executed by the browser. • Usually accessed as a listed “.js” file.

  8. Basic Info Because JavaScript is an interpreted language, it requires no preliminary compilation by the host machine. Thus it runs independent of the code.

  9. Basic JavaScript Functions • Control over the browser • Background, scrollbars, navigation, status bar • User Detection • Browser, Operation System • Client-side Calculation

  10. Basic JavaScript Functions • Verify User input • Text fields • Handling dates and times • Clocks, Calendars, “time of day” handling • HTML generation • JavaScript menus generated by the host machine.

  11. Limitations • Direct access to server or client side files • Exception (cookies) • Multithreading • May be disabled by browser

  12. Common Practical Uses • JavaScript menus • Selection/Search Fields • Cookie generation and access • Form validation

More Related