Skip to main content

Posts

Browser support to JavaScript

Browser support to JavaScript It is possible that a browser do not support JavaScript (generally older versions of the browsers). In such cases JavaScript will be displayed as the content of the webpage as explained above. To prevent them from doing this and as a part of the JavaScript standard you should use the HTML comment tag to "hide" the JavaScript. For this you need to add an HTML comment tag (end of comment) after the last JavaScript statement. E.g. Note: In the above example the two forward slashes at the end of comment line (//) are the JavaScript comment symbol. This prevents JavaScript from executing the --> tag. In case browser does not support JavaScript, the JavaScript code will not be displayed in the webpage as it is written inside the HTML comment tag. Using JavaScript and HTML together As you have seen that you can easily embedded JavaScript in a HTML document. Whenever you need to write JavaScript code you need to use In the

UNDERSTANDING JAVA SCRIPT

Advantage of Using JavaScript 1. Embedded with in HTML: JavaScript is embedded with in a HTML. It does not require any separate editor for programs to be written /edited/compiled. Like HTML JavaScript can be written in simple editor such as HTML. 2. Improved Performance: JavaScript is written with the HTML tags and is interpreted by the browser. This minimizes storage requirement on the web server and download time for the client. 3. Minimal Syntax: The rules for the syntax are simple and applications can be quickly built. 4. Designed for Simple Programs: Simple small programs can be easily written and implemented using JavaScript. Such programs can be easily integrated in a webpage. 5. An Interpreted Language: JavaScript is an interpreted language. It does not require a compilation steps. The syntax is interpreted by the browser just as it interprets HTML tags. 6. Good Programming Constructs: Lik

INTRODUCTION TO JAVA SCRIPT

With the popularity of web there is a need to allow users to interact with the website. Websites need to be intelligent enough to accept user’s request/feedback and dynamically change the content of the webpage on the basis of user input. Some changes like changing background when the content get changed or showing content on the basis of input entered by the user helps to attract the users. JavaScript has been developed to improve the design, validate form entries, detect browsers and manipulate their object, create cookies, and much more. It has emerged as one of the popular scripting language on the internet. JavaScript can be understood as a scripting language that adds interactivity to HTML pages. It is embedded directly into HTML pages and is an interpreted language i.e. you can execute a JavaScript without preliminary compilation. In this blog you will learn about using JavaScript with HTML. After completing this tutorial you will be able to: 1. Write simple pr

Check your knowledge

QUESTIONS AND EXERCISES A. Fill in the blanks 1. WWW understands for _________. 2. TCP stands for __________. 3. Protocol for WWW is ___________. 4. Protocols for Internet are ________ and ________. 5. Cyberspace is metaphor for_____________. B. True/False 1. In Asia, India has highest number of Internet Users? 2. Top language used in internet is English? 3. TCP is protocol for WWW. 4. WWW is service of Internet. 5. ‘www.yahoo.com’ is an IP address. C. Short-Answer Questions 1. Define WWW? 2. Expand HTTP? 3. In ......year, the Department of Defense (DoD) of United States started a network called ARPANET (Advanced Research Project Administration Network)? 4. Which person / single organization owns internet? 5. TCP/IP stands for? 6. Which continent had highest Internet Users in the world? 7. Define URL? 8. 209.62.20.192 is public or private ip address? 9. Find the domain type: com: commercial mil : military edu : education