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

A script to spider and index a site needed, A Script to Spider and Index a ...

A Script to Spider and Index a Site, A Script to Search the Index I want a script that can take 1 or more URLs and spider and index a site. The script must essentially use an ex

Telnet, TELNET is TErminal NETwork. Telnet is both a TCP/IP application & a...

TELNET is TErminal NETwork. Telnet is both a TCP/IP application & a protocol for connecting a local computer with a remote computer. It is a program which allows an Internet host c

E-commerce platform on website app, E-Commerce platform on website App H...

E-Commerce platform on website App Hello creative web developers as well as programmers. I am observing to create a new fashion / website / platform, I want it to be connecte

Need help to create a shopping cart, Create a shopping cart I have an in...

Create a shopping cart I have an incomplete shopping cart. The preceding expert didn't finish the project. He has done 70% of the work as well as then sent it to me. I would lik

Need to code checkout and payment process on back end of web, Need to code ...

Need to code Checkout and Payment Process on Back End of Website I have a website that wants to have a checkout as well as payment process coded into the back end. The website i

In search of expert to setup an open-source php software, In search of expe...

In search of expert to setup an open-source PHP software We are a well-known e-commerce company seeking to setup/sync/edit a git-hub public repository platform, as a whitelabel

Need help in invoicing program to link with shopify, Invoicing program to l...

Invoicing program to link with shopify We are seeking someone to create an invoicing program that can be linked to shopify. There are several apps out there for invoicing wit

Need help to develop social networking website in php, Need help to develop...

Need help to develop social networking website in PHP We are in search of a developer to rewrite the code for our social networking site, Nexopia. The site is currently written

Forms, Now let us get a grip on how to interactivity add to your web docume...

Now let us get a grip on how to interactivity add to your web documents by way of the tag. Along this tag you can add to your web pages as a guestbook, surveys, order

I need help to make drupal website for rent apartments, I have a website I ...

I have a website I build it with Drupal for Rent apartments and I have five buildings in different places and every building have different capacity of apartments and different apa

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