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

Determine the date and time, Use the PHP date function described in IT 202 ...

Use the PHP date function described in IT 202 manual (p. 200), or in w3schools or online PHP manual. Invoke the PHP date function in the script and output to browser. Use a forma

Website paypal integration, Website PayPal integration We have popular o...

Website PayPal integration We have popular of the site developed. We are looking to integrate our website payment system with PayPal. Seeking an experienced developer with PayPa

Status bar, #question.please help source code to display status bar code .

#question.please help source code to display status bar code .

Magento community m2e pro integration with rekuten, Magento Community M2E P...

Magento Community M2E Pro integration with Rekuten, Ebay, Amazon We are seeking an experienced individual that will integrate our Magento (1.6.1.1) with other market places- Ama

I want help in fantasyhubfund minimum viable product, FantasyHubFund Minimu...

FantasyHubFund Minimum Viable Product We want a developer that can start as soon as humanly possible on a small project build. This project consists of four pages, some pop up m

Text area, specify a form field where the user can enter large amounts of t...

specify a form field where the user can enter large amounts of text. In most respects, works as an field. It can contain a name and

What are the differences between http and https, Question 1: Describe i...

Question 1: Describe in detail how public key and private key cryptography are used to provide secure access from a browser to a Web server over the Internet so that a commerc

I need help in completion of blackboard project, I need help in completion ...

I need help in completion of Blackboard Project This is the blackboard project. This is a seven days project. It only needs the designing of few functionalities. Students in ord

Need php to help to develop msds project tracking system, Need to help to d...

Need to help to develop MSDS Project Tracking System using PHP Object Oriented PHP, MySQL, jQuery, jQuery UI, Job Description- Your responsibilities 1) Review business req

Looking for a facebook app developer to build facebook, Facebook app develo...

Facebook app developer Looking for a Facebook app developer to build Facebook Application but with some additional features and add-ons. The app developer wants experience in

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