Daniol Thomas has Published 212 Articles

Why is using the JavaScript eval() function a bad idea?

Daniol Thomas

Daniol Thomas

Updated on 13-Jun-2020 06:47:34

94 Views

The JavaScript eval() is used to execute an argument. The code gets execute slower when the eval() method is used. It also has security implementations since it has a different scope of execution.ExampleHere’s how you can implement eval() function −                   ... Read More

Make an element look like a heading with Bootstrap

Daniol Thomas

Daniol Thomas

Updated on 12-Jun-2020 22:05:16

99 Views

To make an element look like a heading, you can try to run the following code −ExampleLive Demo           Bootstrap Example                                          Planet          Earth          Asia          India          Hyderabad          Madhapur          

Bootstrap panel-default class

Daniol Thomas

Daniol Thomas

Updated on 12-Jun-2020 22:01:42

183 Views

To get a basic panel, just add class .panel to the element. With that, add class .panel-default to this element as in the following code −ExampleLive Demo           Bootstrap Example                                                       This is a demo panel                    

Add a blue background color to an element to set key stuff with Bootstrap

Daniol Thomas

Daniol Thomas

Updated on 12-Jun-2020 20:38:07

94 Views

To set key stuff on an element, use the .bg-primary class in Bootstrap.You can try to run the following code to implement .bg-primary class that is blue in color −ExampleLive Demo           Bootstrap Example                                 Example             Danger       Key text!          

Create a heading inside the media object with Bootstrap

Daniol Thomas

Daniol Thomas

Updated on 12-Jun-2020 19:26:47

56 Views

To create a heading inside the media object, use the .media-heading class:ExampleLive Demo           Bootstrap Example                                          Google Tag Manager Tutorial                                                                                              Definition                Google Tag Manager (GTM) is a free tool that makes it easy for marketers to add and update website tags.                                

Usage of Bootstrap thumbnail

Daniol Thomas

Daniol Thomas

Updated on 12-Jun-2020 17:45:12

64 Views

With the thumbnail class in Bootstrap, you can easily create a thumbnail.Follow the below-given steps &minus − Add an tag with the class of .thumbnail around an image.This adds four pixels of padding and a gray border.On hover, an animated glow outlines the image.You can try to run the following ... Read More

Non-Nav (standard) links in Bootstrap

Daniol Thomas

Daniol Thomas

Updated on 12-Jun-2020 17:10:31

105 Views

Use the standard links that are not within the regular navbar navigation component, and then use the class navbar-link to add proper colors for the default and inverse navbar options.You can try to run the following code to set standard links −ExampleLive Demo           Bootstrap Example                                                                      Website                                                    Copyright                TP                                

Split Button Dropdowns with Bootstrap

Daniol Thomas

Daniol Thomas

Updated on 12-Jun-2020 15:51:10

392 Views

Split button dropdowns use the same general style as the dropdown button but add a primary action along with the dropdown. Split buttons have the primary action on the left and a toggle on the right that displays the dropdown.ExampleYou can try to run the following code to split button ... Read More

Create Responsive Table with Bootstrap

Daniol Thomas

Daniol Thomas

Updated on 12-Jun-2020 13:34:18

1K+ Views

To create a responsive table with Bootstrap, use the table-responsive class.You can try to run the following code to form a responsive table −ExampleLive Demo           Bootstrap Table                                                                                         Subject                   Marks                   Type                                                                           Java                   90                   Programming Language                                                   PHP                   92                   Scrpting Language                                                   jQuery                   80                   JavaScript Library                                                

How can I pass a parameter to a setTimeout() callback?

Daniol Thomas

Daniol Thomas

Updated on 12-Jun-2020 11:26:29

1K+ Views

To pass a parameter to setTimeout() callback, use the following syntax −setTimeout(functionname, milliseconds, arg1, arg2, arg3...)The following are the parameters −function name − The function name for the function to be executed.milliseconds − The number of milliseconds.arg1, arg2, arg3 − These are the arguments passed to the function.ExampleYou can try ... Read More

Previous 1 ... 4 5 6 7 8 ... 22 Next
Advertisements