Rishi Rathor has Published 142 Articles

Bootstrap btn-group class

Rishi Rathor

Rishi Rathor

Updated on 12-Jun-2020 15:06:50

209 Views

Use the class .btn-group to create a button group.You can try to run the following code to implement the btn-group class −ExampleLive Demo           Bootstrap Example                                 The following are the buttons:                One          Two          

Indicate a successful action to a particular table row or cell with Bootstrap

Rishi Rathor

Rishi Rathor

Updated on 12-Jun-2020 13:26:43

130 Views

To indicate a successful action to a particular table row or cell with Bootstrap, use the .success class. You can try to run the following code to implement the .success class −ExampleLive Demo           Bootstrap Table                                                                                         Subject                   Marks                   Type                                                                           C                   65                   Programming Language                                                   PHP                   92                   Scripting Language                                                   jQuery                   80                   JavaScript Library                                                

What does the exclamation mark do before the function in JavaScript?

Rishi Rathor

Rishi Rathor

Updated on 12-Jun-2020 08:46:17

3K+ Views

The ! symbol shows that it is an immediately-invoked function expression.The exclamation mark won’t invoke the function alone; you can put () at the end −!function foo() {}()() has higher precedence than ! and instantly calls the function.You can also mention it like the following −(function(){})();The ! allows the expression ... Read More

What is the role of shiftKey Mouse Event in JavaScript?

Rishi Rathor

Rishi Rathor

Updated on 23-May-2020 09:29:49

210 Views

The shiftkey mouse event property is used to show whether SHIFT key is pressed or not when mouse button is clicked.ExampleYou can try to run the following code to learn how to implement shiftKey Mouse event in JavaScript.           Press and hold SHIFT key and then ... Read More

How to use HTML5 Geolocation Latitude/Longitude API?

Rishi Rathor

Rishi Rathor

Updated on 18-May-2020 08:28:23

741 Views

HTML5 Geolocation API lets you share your location with your favorite websites. A JavaScript can capture your latitude and longitude and can be sent to backend web server and do fancy location-aware things like finding local businesses or showing your location on a map.The geolocation APIs work with a new ... Read More

Set the language of the linked document in HTML

Rishi Rathor

Rishi Rathor

Updated on 03-Mar-2020 12:35:15

122 Views

Use the hreflang attribute to set the language of the linked document in HTML.ExampleYou can try to run the following code to implement the hreflang attribute −           HTML hreflang attribute               Database Tutorial:       DBMS    

Execute a script when an element is being dragged over a valid drop target in HTML?

Rishi Rathor

Rishi Rathor

Updated on 03-Mar-2020 09:41:42

136 Views

When an element is being dragged and dropped in HTML, the ondragover attribute fires.ExampleYou can try to run the following code to implement the ondragover attribute −                    .drag {             float: left;     ... Read More

How to execute the script when the page has finished parsing in HTML?

Rishi Rathor

Rishi Rathor

Updated on 03-Mar-2020 05:29:14

401 Views

Use the defer attribute to execute the script when the page has finished parsing in HTML.Firstly, add a js file.Let us give it a name,  new.js, function sayHello() {    alert("Hello World") }ExampleLet’s add the HTML code now and execute the above script −             ... Read More

How to store a name permanently using HTML5 Local Storage?

Rishi Rathor

Rishi Rathor

Updated on 25-Feb-2020 07:00:54

365 Views

The Local Storage is designed for storage that spans multiple windows and lasts beyond the current session. In particular, Web applications may wish to store megabytes of user data, such as entire user-authored documents or a user's mailbox, on the client side for performance reasons.HTML5 localStorage saves string data in ... Read More

protected access modifier in Java

Rishi Rathor

Rishi Rathor

Updated on 24-Feb-2020 12:32:07

723 Views

Variables, methods, and constructors, which are declared protected in a superclass can be accessed only by the subclasses in other package or any class within the package of the protected members' class.The protected access modifier cannot be applied to class and interfaces. Methods, fields can be declared protected, however methods ... Read More

Previous 1 ... 5 6 7 8 9 ... 15 Next
Advertisements