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

Objects, A JavaScript object is an example of data type. Object is given a ...

A JavaScript object is an example of data type. Object is given a unique name & the set of properties of the corresponding object might be accessed by means of the dot syntax. As a

Call-back function for wp web scraper in wordpress, Call-back Function for ...

Call-back Function for WP Web Scraper - Wordpress Summary- A call-back function for WP Web Scraper to create wordpress post (custom post type) as well as populate custom taxo

Draw layout cells in a table, Now insert layout cells into which you will a...

Now insert layout cells into which you will add text regarding travel locations. 1. In the Objects panel, click on the Draw Layout Cell icon & move the pointer to the layout tab

Need help in event web based program using php, EVENT Web Based Program usi...

EVENT Web Based Program using PHP We are seeking someone who is qualified in using the PHP to develop an Event Management program which arrange of payments via systems like PayP

Need two pages created and a blog, Web Development - Need two pages created...

Web Development - Need two pages created and a blog I have purchased a domain name as well as hosting service. I now must to start building the website Requirements- 1) Dr

I want wp estore theme experienced developer, WP Estore Theme Experienced D...

WP Estore Theme Experienced Developer Required Keep work on wordpress estore theme website required. Should have previous proven experience with wp estore theme. Probabili

We need a wordpress plugin made easy, We need a Wordpress Plugin -Made Easy...

We need a Wordpress Plugin -Made Easy Want a wordpress plugin developed. User experience- The website visitor would click on a review us button this would open a lightbox tha

I need inventory and stock, I need Inventory and Stock Project Descripti...

I need Inventory and Stock Project Description: I need a module of Stock & Inventory which will be integrated with our existing Accounts Module; Our existing module is prepar

We require a web developer for simple website, We require a Web Developer f...

We require a Web Developer for simple website I need simple website Consist of PHP, JavaScript, HTML 5 Desired Skills are JavaScript, PHP, HTML5

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