Nitya Raut has Published 221 Articles

What is the usage of onpageshow event in JavaScript?

Nitya Raut

Nitya Raut

Updated on 21-May-2020 07:46:57

200 Views

The onpageshow event triggers in JavaScript when a user reaches the new web page.ExampleYou can try to run the following code to learn how to implement onpageshow event in JavaScript.           On first visit, a welcome message is visible.                function newFunc() {             alert("Welcome!");          }          

Set the types of files that the server accepts in HTML

Nitya Raut

Nitya Raut

Updated on 02-Mar-2020 12:35:56

178 Views

Use the accept attribute to set the types of files that the server accepts in HTML. Use the attribute only with .ExampleYou can try to run the following code to work with accept attribute −           File Upload Box                                  

How to read and parse CSV files in C++?

Nitya Raut

Nitya Raut

Updated on 11-Feb-2020 10:54:53

3K+ Views

You should really be using a library to parsing CSV files in C++ as there are many cases that you can miss if you read files on your own. The boost library for C++ provides a really nice set of tools for reading CSV files. For example, example#include vector parseCSVLine(string ... Read More

Why does C++ need the scope resolution operator?

Nitya Raut

Nitya Raut

Updated on 11-Feb-2020 06:44:46

654 Views

The :: (scope resolution) operator is used to get hidden names due to variable scopes so that you can still use them. The scope resolution operator can be used as both unary and binary.You can use the unary scope operator if a namespace scope or global scope name is hidden ... Read More

What is the ?-->? operator in C++?

Nitya Raut

Nitya Raut

Updated on 10-Feb-2020 13:37:58

367 Views

There is no such operator in C++. Sometimes, we need to create wrapper types. For example, types like unique_ptr, shared_ptr, optional and similar. Usually, these types have an accessor member function called .get but they also provide the operator→ to support direct access to the contained value similarly to what ... Read More

How can we take a backup of all the databases by using mysqldump client program?

Nitya Raut

Nitya Raut

Updated on 07-Feb-2020 06:38:46

221 Views

By using mysql dump client program we can take the backup of all the databases into a file having the extension ‘.sql’. It can be understood with the help of the following example −ExampleIn this example, with the help of mysql dump client program, we are taking the backup all ... Read More

How can we search a record from MySQL table having a date as a value in it?

Nitya Raut

Nitya Raut

Updated on 30-Jan-2020 06:29:55

145 Views

It can be understood with the help of following example in which we are using the following data from the table named ‘detail_bday’ −mysql> Select * from detail_bday; +----+---------+------------+ | Sr | Name    | Birth_Date | +----+---------+------------+ | 1  | Saurabh | 1990-05-12 | | 2  | Raman   ... Read More

What is the usage of
and

Nitya Raut

Nitya Raut

Updated on 29-Jan-2020 10:24:41

139 Views

The elements and are useful for screenreaders as well and help visually impaired users in reading the content of your web page. These are beneficial for eBook readers as well.Let us see how to work with both the elements.           HTML Section Tag ... Read More

What are the DataTransfer object attributes?

Nitya Raut

Nitya Raut

Updated on 29-Jan-2020 08:21:27

520 Views

The DataTransfer object holds data about the drag and drop operation. This data can be retrieved and set in terms of various attributes associated with the DataTransfer object.The following are the attributes:Sr.No.DataTransfer attributes and their description1dataTransfer.dropEffect [ = value ]Returns the kind of operation that is currently selected.This attribute can ... Read More

Test if the HTML attribute tabindex is present and get the value

Nitya Raut

Nitya Raut

Updated on 29-Jan-2020 06:35:53

488 Views

To get the value of the HTML attribute, try the following:$("#demo").attr("tabindex")The attr() method can be used to either fetch the value of an attribute from the first element in the matched set or set attribute values onto all matched elements.You can also use the hasAttribute() method to see if there ... Read More

Previous 1 ... 6 7 8 9 10 ... 23 Next
Advertisements