Add javascript into a web page, PHP Web Programming

Assignment Help:

As you know HTML (Hypertext Markup Language) is the language you employ to generate Web documents. You should have created "Hello World!" as given below:

<HTML>

<HEAD><TITLE>My First Page</TITLE></HEAD>

<BODY> Hello World!

</BODY>

</HTML>

In order to add JavaScript to a page, you'll employ a similar tag: <SCRIPT>.

The <SCRIPT> tag tells the browser to begin treating the text like a script, and the </SCRIPT> tag returns to the regularly scheduled HTML as given below. Note down that the file will be stored as.html or.htm.

485_Add JAVASCRIPT INTO A WEB PAGE.png

The output of the above program will be

1446_Add JAVASCRIPT INTO A WEB PAGE1.png

In this instance, we placed the script in the body of the HTML document. Actually there are four distinct places where you can employ scripts:

  • In body of the page. In this case, the output of script is displayed, as part of the HTML document, while the browser loads page.
  • In the header of the page, among the <HEAD> tags. In the header scripts aren't immediately executed, though can be referred to by other scripts. The header is frequently used for functions.
  • Inside an HTML tag. It is called an event handler and let the script to work with HTML elements. Event handlers are one kind of script where you don't require using the <SCRIPT> tag.
  • In a separate file completely JavaScript supports the employ of files with the .js extension containing scripts; these can be included by mentioning a file in the <SCRIPT> tag. This feature works just in Netscape Navigator 3.0 or later and Internet Explorer 4.0 or later.

Related Discussions:- Add javascript into a web page

Magento developer is required to audit and update a magento, Magento Develo...

Magento Developer is required to audit and update a Magento 1.702 website As we are quickly expanding ongoing work will be available for the right candidate. The ideal Magento D

I need a responsive web programmer, Responsive Web programmer In want of...

Responsive Web programmer In want of responsive web programmer to finish my portfolio project. Very simple job scope, html and fluid grid and some javascript. PSD files will be

Wanted chief technology expert, Wanted Chief Technology Officer We are S...

Wanted Chief Technology Officer We are Sheermedia a creative web agency working on the full range of marketing requirements - be it websites, mobile applications, Facebook appli

Web application - front-end for bash tools, Web Application - Front-End for...

Web Application - Front-End for BASH Tools We are in search of a developer or organization capable of building a web application designed to function as a user-rich web front-en

Need help to edits to zen cart website, Edits to our Zen Cart website We...

Edits to our Zen Cart website We would like to rental a developer to make the following adjustments to our Zen Cart 1.5.x online store 1) Featured Products on Main Page Ha

Required skilled d3.js programmer, Need skilled d3.js programmer Seeking...

Need skilled d3.js programmer Seeking skilled programmer to work on SaaS prototype. Please offer proof of experience in the form of verifiable work and references. Desired Sk

Need help in magento site optimization, Need help in Magento Site Optimizat...

Need help in Magento Site Optimization and Cross Browser Compatibility Looking for Magento expert for optimization of development site due to be launched soon. Tasks would compr

Want someone who can create wordpress plugin, Wordpress plugin Want some...

Wordpress plugin Want someone who can create (or modify existing) WP plugin to act like Desired Skills are PHP, WordPress

We want a talented team to make a specific mobile app, Tailor made app user...

Tailor made app user tracking tool We want a talented team to make a specific mobile app tracking tool to track all events for each of our clients inside our app. You should hav

Usenet and newsgroups, On Internet there exists another way to meet people ...

On Internet there exists another way to meet people & share information. One of such way is through Usenet newsgroups. These are special groups established through people who want

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd