Vrundesha Joshi has Published 345 Articles

What is the use of JavaScript eval function?

Vrundesha Joshi

Vrundesha Joshi

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

249 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. In addition, use it to evaluate a string as a JavaScript expression.The eval() method is not suggested ... Read More

How to set the number of rows a table cell should span in HTML?

Vrundesha Joshi

Vrundesha Joshi

Updated on 01-Jun-2020 08:50:05

2K+ Views

Use the rowspan attribute to set the number of rows a table cell should span. To merge cells in HTML, use the colspan and rowspan attribute. The rowspan attribute is for number of rows a cell should span, whereas the colspan attribute is for number of columns a cell should ... Read More

How to search and display the pathname part of the href attribute of an area with JavaScript?

Vrundesha Joshi

Vrundesha Joshi

Updated on 23-May-2020 11:37:05

67 Views

To get the pathname part of the href attribute of an area in JavaScript, use the pathname property.ExampleYou can try to run the following code to display the pathname part.                                                var x = document.getElementById("myarea").pathname;          document.write("Pathname: "+x);          

Which event occurs in JavaScript when an element's content is pasted?

Vrundesha Joshi

Vrundesha Joshi

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

63 Views

The onpaste event occurs when you paste content in the element.ExampleYou can try to run the following code to learn how to work with onpaste event in JavaScript.                          function pasteFunction() {             document.write("Text pasted successfully!");          }          

How to use HTML5 GeoLocation API with Google Maps?

Vrundesha Joshi

Vrundesha Joshi

Updated on 18-May-2020 08:36:34

1K+ 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 coordinates specify the geographic ... Read More

How to use multiple attribute in HTML?

Vrundesha Joshi

Vrundesha Joshi

Updated on 14-May-2020 10:50:22

3K+ Views

The multiple attribute in HTML allows user to enter more than one value. It is a Boolean attribute and can be used on as well as element, To allow multiple file uploads in HTML forms, use the multiple attribute. The multiple attribute works with email and file input ... Read More

Execute a script when a mouse button is pressed down on an element in HTML?

Vrundesha Joshi

Vrundesha Joshi

Updated on 03-Mar-2020 12:37:45

242 Views

Use the onmousedown attribute to in HTML to execute a script when a mouse button is pressed down on an element.ExampleYou can try to run the following code to implement onmousedown attribute −                    This is demo heading.     ... Read More

How to add a date and time in HTML5?

Vrundesha Joshi

Vrundesha Joshi

Updated on 02-Mar-2020 12:23:18

3K+ Views

Use the tag to add date and time. The HTML tag is used for displaying the human readable date and time.The HTML tag also supports the following additional attribute −AttributeValueDescriptiondatetimedatetimeIt is a machine readable date timeExampleYou can try to run the following code to learn how to ... Read More

How to create a Date object and what all parameters it include?

Vrundesha Joshi

Vrundesha Joshi

Updated on 02-Mar-2020 05:33:04

402 Views

The Date object is a datatype built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, month, day, ... Read More

public access modifier in Java

Vrundesha Joshi

Vrundesha Joshi

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

257 Views

A class, method, constructor, interface, etc. declared public can be accessed from any other class. Therefore, fields, methods, blocks declared inside a public class can be accessed from any class belonging to the Java Universe.However, if the public class we are trying to access is in a different package, then ... Read More

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