Javascript execCommand() function

The predefined function execCommand() applies to the text that is selected. You can perform actions like bold, delete, redo, undo, etc. on the selected text in the editable area. You need to use the document prefix before execCommand like this document.execCommand();. exec Commands List bold copy paste cut redo undo delete superscript subscript unlink selectAll … Read more Javascript execCommand() function

Conditions in JavaScript

Condition is a way that helps you to do the programming by applying condition constraints or lets you do programming according to your thinking. You need to know about conditional statements to work on it. There are four conditional statements in Java-script to apply condition which are the following: if condition else condition if else … Read more Conditions in JavaScript

Methods To Get Output in JavaScript

When we want to give any message to the user or print anything on the screen as output in JavaScript then following methods are used for that- window.alert() document.write() console.log() innerHTML window.alert() Output Method Example- document.write() Output Method It replaces all the document to print its result. Example- console.log() Output Method A JavaScript object can … Read more Methods To Get Output in JavaScript

Join operations in SQL

When we want to make relations between two or more tables, we take in use join operations. We are going to understand these operations with example, so first, we will create a database, table, and then insert some data in it. Database Name – jai_school Query– Create two tables – admission and fee admission table … Read more Join operations in SQL