saftutorials.com
js
JS is a most popular Web Programming language that use with HTML. It is a language for web development. By this JS Tutorials you can learn how to make a user friendly website using JS.

JS full meaning is Java Script


If you want build a user friendly website with JS, so first learn JS. If you follow our full JS tutorials with video tutorials we hope you can learn JS complete and make your website user friendly.

You three way apply JS on HTML coding like CSS apply way.
1. Inline methode, 2. Embeded methode, 3. External file link methode

JS Inline Style structure

Click here to get an output

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>JS Tutorials</title>
    </head>
<body>
    <button type="button" onclick="alert('Hello! Thanks for using www.saftutorials.com')">Show Result <!-- here use inline js methode -->
</body>
</html>

Double Click to Select Code

 

Embeded JS structure

<!DOCTYPE html>
<html lang="en">
    <head>
            <title>JS Tutorials</title>
        <script>  <!-- here start define embeded js code -->
        function safFunction() {
            alert("This is alert system using JS!");
        }
        </script>  <!-- here end define embeded js code -->
    </head>
<body>
    <p>Click the button to get JS alert box:</p>
    <button onclick="safFunction()">Hit me</button>
</body>
</html>

Double Click to Select Code

 

external JS structure

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>JS Tutorials</title>
        <script src="js/jsfile.js"></script> <!-- here link embeded js file -->
    </head>
<body>
    <p>Click the button to get JS alert box:</p>
    <button onclick="safFunction()">Hit me</button>
</body>
</html>

Double Click to Select Code

Find us on

Facebook Google Plus Twitter Pinterest YouTube

web statistic