Krantik Chavan has Published 308 Articles

How to handle Geolocation errors in HTML5?

Krantik Chavan

Krantik Chavan

Updated on 16-Jun-2020 07:37:10

698 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.Geolocation is complicated, and it is very ... Read More

How to draw on the canvas with JavaScript?

Krantik Chavan

Krantik Chavan

Updated on 15-Jun-2020 11:54:40

524 Views

Drawing on the HTML canvas is to be done with JavaScript. Use the HTML DOM Method getElementById() and getContext() before drawing on the canvas.For that, follow some steps −You need to use the getElementById() method to find the canvas element.Use the getContext(), which is drawing object for the canvas. It ... Read More

How to use formtarget attribute in HTML?

Krantik Chavan

Krantik Chavan

Updated on 15-Jun-2020 11:32:18

171 Views

The formtarget attribute in HTML is used to indicate where the response that is received after the form submission is displayed. It overrides the target attribute of the HTML form tag. Use the formtarget attribute only with input type submit an image.Here are the attribute values of the formtarget attribute ... Read More

Add a gray background color to the active link in a default Bootstrap navbar

Krantik Chavan

Krantik Chavan

Updated on 15-Jun-2020 07:15:32

465 Views

To add gray background color to the active link, use the .active class in Bootstrap.You can try to run the following code to implement .active class −ExampleLive Demo           Bootstrap Example                                                                      Website                                        Home                Tutorials                Quiz                                            Demo          This is demo text.          

What is if...else if... statement in JavaScript?

Krantik Chavan

Krantik Chavan

Updated on 13-Jun-2020 11:41:16

230 Views

The if...else if... statement is an advanced form of if…else that allows JavaScript to make a correct decision out of several conditions.SyntaxThe syntax of an if-else-if statement is as follows −if (expression 1){    Statement(s) to be executed if expression 1 is true } else if (expression2){    Statement(s) to ... Read More

What is the difference between a++ and ++a in JavaScript?

Krantik Chavan

Krantik Chavan

Updated on 13-Jun-2020 06:46:22

6K+ Views

++a returns the value of an after it has been incremented. It is a pre-increment operator since ++ comes before the operand.a++ returns the value of a before incrementing. It is a post-increment operator since ++ comes after the operand.ExampleYou can try to run the following code to learn the ... Read More

Fade in tab with Bootstrap

Krantik Chavan

Krantik Chavan

Updated on 12-Jun-2020 21:59:01

3K+ Views

Use the .in class in Bootstrap to fade in the tab.You can try to run the following code to fade in tab −ExampleLive Demo           Bootstrap Example                               ... Read More

Create a basic button with Bootstrap

Krantik Chavan

Krantik Chavan

Updated on 12-Jun-2020 20:13:30

134 Views

Use the .btn class in Bootstrap to create a button.You can try to run the following code to create a basic button in Bootstrap −ExampleLive Demo           Bootstrap Example                                          Categories          Tech 95          Entertainment 30          Research 9          Viral 20          Sport 105                      Our blog posts          Click to visit          

Group buttons on a single line with Bootstrap

Krantik Chavan

Krantik Chavan

Updated on 12-Jun-2020 19:14:50

3K+ Views

Use the .btn-group class in Bootstrap to group buttons on a single like.You can try to run the following code to implement .btn-group class in Bootstrap:ExampleLive Demo           Bootstrap Example                                 The following are the car brands:                BMW          Audi          Jeep          Datsun          Toyota          Mahindra          

Bootstrap class Jumbotron

Krantik Chavan

Krantik Chavan

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

78 Views

With the jumbotron class in Bootstrap, increase the size of headings and add a lot of margin for landingpage content.You can try to run the following code to implement the .jumbotron class in Bootstrap −ExampleLive Demo           Bootstrap Example                                                       Welcome to landing page!             Our first page.                            Click for more                                

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