No Image

Javascript Inbuilt Methods: Part I

February 21, 2020 admin 0

Here are the JS DOM inbuilt methods to get these HTML tags/elements: document.getElementById(id) document.getElementsByTagName(name) document.getElementsByClassName(class) document.querySelector(*) document.querySelectorAll(*) We can use these methods to update the […]

Javascript – How to add comments

February 19, 2020 admin 0

Here are the syntax to add comments in Javascript. 1 Double Trailing Slash – “//” Example Code: <!DOCTYPE html> <html lang=”en”> <head>     <meta charset=”UTF-8″> […]

js

Javascript Introduction

February 17, 2020 admin 0

What is Javascript? JavaScript is a client-side programming language which adds interaction to your static webpage. HTML and CSS create the structure, but they don’t […]

HTML5-logo

HTML5 Drag and Drop Example

March 3, 2019 admin 0

HTML5 Allows drag and drop functionality as root element var doc = document.documentElement; doc.ondragover = function () { this.className = ‘hover’; return false; }; doc.ondragend […]

Drag and Drop Div Elements

August 9, 2015 admin 0

Using Jquery we can drag and drop div elements: 1) we have two div “test1” “test2” <div id=”test1″> <div class =”monday”></div> <div class =”tuesday”></div> <div […]