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

I want help in bitcoin stock exchange, Bitcoin stock exchange Make a bit...

Bitcoin stock exchange Make a bitcoin stock exchange a full functional copy of other stock exchange Must accept bitcoins as well as nextcoins through automatically deposits f

I need help in a website updates, I need help in a Website Updates I do ...

I need help in a Website Updates I do like the make the subsequent changes to my website: 1 Add tag line beneath logo to home page 2 Add about section to right of home page w

Phpbb modifications for course type forum, PHPBB modifications (course type...

PHPBB modifications (course type forum) I want to create a different view/organization of the viewForum.php for my phpBB site. To support this change several changes needs to

I need help to create a unique website, I need help to create a unique webs...

I need help to create a unique website I'm seeking a programmer with experience in PHP, Javascript as well as Jquery, MySql. I have most of the script ready as well as need a li

Session management, I need help with adding session management to my login ...

I need help with adding session management to my login webpage. It is the MVC method and has 2 models and 1 view alongside the login page of course. I just need assistance with the

Need help in website design for music portal, Website Design for Music Port...

Website Design for Music Portal I need to launch music portal in India. I am asking anybody to make the attractive design for my portal. If I like the design I will provide t

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

Rails3 application with web & mobile clients, Rails3 Application with Web &...

Rails3 Application with Web & Mobile Clients I want a developer to work on a Rails application that serves html primarily to iOS and Android clients. Desired Skills are Unix,

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