Sharp Tutorial
js introduction

Python

Java

C

C++

HTML/CSS

Java Script

PHP

SQL

C Programs

Java Script

  • java script home
  • introduction
  • Variable Declare & Make Comment
  • operator
  • if else
  • loop
  • Array
  • Function
  • Java Script Objects
  • Java Script DOM

JS based examples

  • two number sum and diff programs
  • Pattern program in java script
  • zumble word quiz
  • Random number guess program
  • calculator in java script
  • digital clock in java script

HTML

  • HTML Home
  • Introduction
  • Commonly used tags
  • Formatting
  • Working with class
  • Apply Css
  • Layout
  • Link / Image
  • Html Forms
  • Html Tables
  • Responsive Design

CSS

  • Introduction
  • Types of Css
  • Background and Color
  • Css Formatting
  • Css Layout
  • Css Animation
  • Css Table
  • Css Effects
  • Css Pagination
  • Css Media Query

Introduction to Java Script

Java Script is a scripting language so it can be embedded in HTML page with the help of <script> tag.

Java Script used for client side validation in web technology like PHP , Java , Python .net applications .

External Java script files may be created with extension (.js ) . External JS file may contain only JS code while HTML page may contain both HTML and Java Script in <script> tag.

 

<html>
<title>JS introduction</title>
<head>
<script>
document.write("this is js print ");
</script>
</head>
<body>
</body>
</html>

How to write JS in an HTML page

Save above file with extension .html eg. jsintro.html. Output can be displayed in any of the browser eg google chrome , internet explorer, Firefox or safari   etc.

 document.write() print the message in the HTML page so output will be as following.

 

[codepen_embed height="265" theme_id="default" slug_hash="wvBaoQy" default_tab="html,result" user="rajputadesh"]See the Pen wvBaoQy by rajput adesh (@rajputadesh) on CodePen.[/codepen_embed]

Enquiry about Course

Ask your Question

Click Here

Sharp (2) Tutorials

Video/ C Introduction

Watch video in full size

Video tutorial

Follow by Email
Facebook
Facebook
fb-share-icon
YouTube
Copyright © Sharp Tutorial
Build with WordPress
Wordpress Social Share Plugin powered by Ultimatelysocial
Sharp Tutorial