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

Design a simple e-commerce website, The objective of the term project is to...

The objective of the term project is to build a simple E-commerce website by integrating client and server scripting. The website you designed should be published online (student.c

Market value targeted to regions or countries, A website that permits you t...

A website that permits you to enter data for a specific product make and model and perform a search on multiple websites, of any kind to generate a report of the different prices,

Explain different types of statement which are there in php, What are the d...

What are the different types of statements which are present in PHP? There are four types of PHP statements which are present. They are as follows: • Simple statement- the

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

Need help to make api changes, Need help to make API changes a) All work...

Need help to make API changes a) All work submitted via github b) All time billed using workview Want adjustments to custom scripts for ebay APIs: a) Download part numb

I need help in styling live xml feed, I need help in Styling Live XML Feed ...

I need help in Styling Live XML Feed Need the reordering and styling of a short (dynamic) xml feed. The results are to be displayed within an external webpage. Additional wor

Want someone who can create wordpress plugin, Wordpress plugin Want some...

Wordpress plugin Want someone who can create (or modify existing) WP plugin to act like Desired Skills are PHP, WordPress

Redirect visitor to custom page based on ip, i need an php script that redi...

i need an php script that redirect the visitor to url or dir based on their ip address if the visitor from Germany then they should redirected to this dir "DE" If France . => "F

Anchor tag, The Anchor tag is utilized to create links between distinct obj...

The Anchor tag is utilized to create links between distinct objects such as HTML pages, files, web sites etc.  This is introduced through the characters and terminated th

Need help to merge three custom post types into one, Wordpress- Merge three...

Wordpress- Merge three Custom Post Types into one I have a Wordpress website site that has three custom post types. I in reality want them merged into one. The headline post

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