Display JavaScript Variable Value in Alert Box

varma
Updated on 16-Jun-2020 13:14:18

8K+ Views

To display JavaScript variable value in an alert box, try to run the following code −ExampleLive Demo                    function display() {             var a = "Simple";             var b = "Learning";             alert(a +" Easy "+ b);          }                        

Difference Between void eval and Function Constructor in JavaScript

usharani
Updated on 16-Jun-2020 13:12:48

417 Views

The void keywordThe void is an important keyword in JavaScript, which can be used as a unary operator that appears before its single operand, which may be of any type. This operator specifies an expression to be evaluated without returning a value.The syntax of the void can be either of the following two −               The eval() functionThe 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 ... Read More

Make an Anchor Tag Refer to Nothing

varun
Updated on 16-Jun-2020 13:10:42

5K+ Views

To make an anchor tag refer to nothing, use “javascript: void(0)”. The following link does nothing because the expression "0" has no effect in JavaScript. Here the expression "0" is evaluated, but it is not loaded back into the current document.ExampleLive Demo                                         Click the following, This won't react at all...       Click me!      

Replace JavaScript Alert Pop-Up with a Fancy Alert Box

Daniol Thomas
Updated on 16-Jun-2020 13:10:14

1K+ Views

To design a custom JavaScript alert box, try to run the following code. The code uses a JavaScript library jQuery and CSS to create a fancy alert box different from the standard JavaScript alert box −ExampleLive Demo                                function functionAlert(msg, myYes) {             var confirmBox = $("#confirm");             confirmBox.find(".message").text(msg);             confirmBox.find(".yes").unbind().click(function() {                confirmBox.hide();             }); ... Read More

Create Modal Popup Using JavaScript and CSS

Nishtha Thakur
Updated on 16-Jun-2020 13:05:24

637 Views

Creating a modal popup means adding a dialog box, which generates on click of a button and close when user clicks anywhere outside of the popup.Here’s how a popup looks like below with header and a text. You can also add a footer to it −To create a modal popup using CSS and JavaScript, try to run the following code −ExampleLive Demo                    .popup {             display: none;             position: fixed;             z-index: 1;   ... Read More

Style Navigation Tabs Inside the Bootstrap 4 Card Header

Alex Onsman
Updated on 16-Jun-2020 13:03:44

346 Views

To style navigation tab inside the card header in Bootstrap 4, use the .card-header-tabs and create navigation tabs like the below example −The following is an example to style navigation tabs inside the Bootstrap 4 card header −ExampleLive Demo       Bootstrap Example                             IDE                                         Eclipse IDE                                 NetBeans IDE                                       Eclipse IDE Introduction         Eclipse is a widely used Java IDE.            

Export Delivery Unit in SAP HANA Using HANA Studio

John SAP
Updated on 16-Jun-2020 13:02:17

609 Views

In SAP HANA system, you have to assign packages to Delivery unit. Once packages are assigned to export DU, you can see the list of DU’s by using Export option −Go to File → Export → Delivery Unit → Select the Delivery UnitYou can also select export location:Export to ServerExport to ClientThis means that a Delivery unit can be exported to HANA Server location or to a Client location as shown in the below snapshot. It also shows you list of all packages that will exported with Delivery unit you have selected from drop down list.

Bootstrap 4 Card Header Pills Class

Alex Onsman
Updated on 16-Jun-2020 12:57:54

615 Views

Use the card-header-pills class in Bootstrap 4 to style navigation pills in card header.Set the navigation using the card-header-pills −The following is the code snippet to use the car-header-pills class with the na-pills class −                     Java                     C             The following is an example to implement the card-header-pills Bootstrap 4 class −ExampleLive Demo       Bootstrap Example                             Programming                                         Java                                 C                                 C++                                       Java Installation         Download JAVA JDK from Oracle Java website and...              

Graph Coloring

karthikeya Boyini
Updated on 16-Jun-2020 12:53:49

7K+ Views

Graph coloring problem is a special case of graph labeling. In this problem, each node is colored into some colors. But coloring has some constraints. We cannot use the same color for any adjacent vertices.For solving this problem, we need to use the greedy algorithm, but it does not guaranty to use minimum color.Input and OutputInput: Adjacency matrix of the graph. 0 0 1 0 1 0 0 1 1 1 1 1 0 1 0 0 1 1 0 1 1 1 0 1 0 Output: Node: 0, Assigned with Color: 0 Node: 1, Assigned with Color: 0 ... Read More

Fleury's Algorithm

Chandu yadav
Updated on 16-Jun-2020 12:47:09

7K+ Views

Fleury’s Algorithm is used to display the Euler path or Euler circuit from a given graph. In this algorithm, starting from one edge, it tries to move other adjacent vertices by removing the previous vertices. Using this trick, the graph becomes simpler in each step to find the Euler path or circuit.We have to check some rules to get the path or circuit −The graph must be a Euler Graph.When there are two edges, one is bridge, another one is non-bridge, we have to choose non-bridge at first.Choosing of starting vertex is also tricky, we cannot use any vertex as ... Read More

Advertisements