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

Meta tag, You might be aware of, and perhaps may have used, search engines ...

You might be aware of, and perhaps may have used, search engines such as Google to look for web pages on a topic of interest. The META Tag comes in useful if you want your web page

3d printing website or software written mainly in phython, 3D Printing webs...

3D Printing website as well as software written mainly in Phython and HTML5 We would like to appoint someone who is capable to bring the power of OctoPrint as well as botqueue t

Move the layout table, You can choose and move a layout table to other area...

You can choose and move a layout table to other areas in a document. However, you cannot move a layout table so that it overlaps another. After that you will move the table you

Web app on ruby on rails, WEB APP Laravel PHP, MongoDB, Python Flask, An...

WEB APP Laravel PHP, MongoDB, Python Flask, AngularJS, Celery or Gevent, Bootstrap, But I am likewise open to Ruby On Rails or other tech if reasoning is clear. Desired Skill

Why ide is recommended for use when programming with php, Why IDE is recomm...

Why IDE is recommended for use when programming with PHP? IDE stands for Integrated Development environment; it's a framework for developing applications. It includes programmi

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

I need ecommerce store product, I need eCommerce Store Product I have ar...

I need eCommerce Store Product I have around 300 products that need specs/ descriptions and possibly images for my ecommerce store. I need these things for every product: 1)

I need help in basic wordpress formatting, I need help in Basic Wordpress F...

I need help in Basic Wordpress Formatting Repeat the process of- 1) Adding a specific short code to over 100 pages, while matching the shortcode a predefined category of uploade

Seeking for a javascript engineer, Looking for a JavaScript Engineer I a...

Looking for a JavaScript Engineer I am seeking for a JavaScript Engineer good at MeteorJS framework. I would like to have a prototype erected as below Users can register with

We need help to make to improve our website time card, We need help to make...

We need help to make to improve our Website Time Card Our website is built on WordPress. We have up to 100 remote employees who want to submit time cards to us. Presently the

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