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

Consulting on html5 mobile framework, Fast consulting on HTML5 mobile frame...

Fast consulting on HTML5 mobile framework based on offered web app. Project Description: I have a web app built with PHP/node/ backbone.js/MySQL/jQuery/kinetic.js/canvas, and

Design a website in wordpress using custom css, I have a WordPress website ...

I have a WordPress website that is about 95 percent done. It was done using a template that I did a LOT of custom CSS with. I am having some issues with a couple of CSS items and I

We need help to import bulk products and images, We need help to Import bul...

We need help to Import bulk products and images to prestashop with combinations We need to bulk import the products as well as images with combinations to our prestashop store.

Create a simple php shopping cart, The system should be able to secure crea...

The system should be able to secure creating client accounts, integrate the notion of administrator and have a shopping cart. You should use PDO class for communications with th

#title: , Create the xhtml markup that produces the table shown below. Use ...

Create the xhtml markup that produces the table shown below. Use and tags as necessary. The camel.gif image can be downloaded from http://www.deitel.com/books/iw3htp4/

Need drupal expert to check website downtime after migrating, Need Drupal e...

Need Drupal expert to check website downtime after migrating to drupal 7.0 CMS We are looking for help to check on our website which has been experiencing intermittent downtime

Draw layer from common toolbar, Step 1:  Select Layer from Common toolbar &...

Step 1:  Select Layer from Common toolbar & draw a layer. Step 2:  Write the text within the Layer. Step 3:  Click on Modify button (when the layer is selected) Step 4:  C

Need professional website, Need professional website, backend system with l...

Need professional website, backend system with login and admin panel Project Description: we want someone or a team who are able to assist us in the subsequent, 1) a profe

Need help from senior website coder wordpress, Need help from Senior Websit...

Need help from Senior Website Coder wordpress A marketing firm for international brands. Job Description- We're seeking for a Web Developer. Your responsibilities- I'm

WEB, 2346 3245654

2346 3245654

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