Smita Kapse has Published 560 Articles

How to write a script to access document properties using IE4 DOM method?

Smita Kapse

Smita Kapse

Updated on 23-Jun-2020 07:27:28

69 Views

This IE4 document object model (DOM) introduced in Version 4 of Microsoft's Internet Explorer browser. IE 5 and later versions include support for most basic W3C DOM features.ExampleTo access document properties using IE4 DOM method, try to run the following code −           Document Title ... Read More

What are JavaScript Identifiers?

Smita Kapse

Smita Kapse

Updated on 23-Jun-2020 06:44:09

4K+ Views

JavaScript Identifiers are names given to variables, functions, etc. It is the same as identifiers in other programming languages like C, C++, Java, etc. Let’s see identifiers for variable names.The following are legal variable names −val val1 resultWhile naming your variables in JavaScript, keep the following rules in mind.You should ... Read More

What is the difference between default and rest parameters in JavaScript functions?

Smita Kapse

Smita Kapse

Updated on 23-Jun-2020 05:49:08

254 Views

Default ParametersThe default parameter came to handle function parameters with ease. You can easily set Default parameters to allow initializing formal parameters with default values. This is possible only if no value or undefined is passed. Example Live Demo                    // default is ... Read More

How can we enter characters as a BINARY number in MySQL statement?

Smita Kapse

Smita Kapse

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

123 Views

Following are the two approaches with the help of which we can enter characters as a BINARY number −By prefix ‘B’In this approach we need to quote binary numbers within single quotes with a prefix of B. Then BINARY number string will be automatically converted into a character string.Examplemysql> Select ... Read More

How can we handle a result set inside MySQL stored procedure?

Smita Kapse

Smita Kapse

Updated on 22-Jun-2020 06:37:40

992 Views

We can use a cursor to handle a result set inside a stored procedure. Basically a cursor allows us to iterate a set of rows returned by a query and process each row accordingly.To demonstrate the use of CURSOR within MySQL stored procedure, we are creating the following stored procedure which ... Read More

How can I create MySQL stored procedure with IN parameter?

Smita Kapse

Smita Kapse

Updated on 22-Jun-2020 05:26:03

321 Views

To make it understand we are using the table named ‘student_info’ which have the following values −mysql> Select * from student_info; +-----+---------+------------+------------+ | id  | Name    | Address    | Subject    | +-----+---------+------------+------------+ | 101 | YashPal | Amritsar   | History    | | 105 | Gaurav ... Read More

What are the different unit values that can be used with MySQL INTERVAL keyword?

Smita Kapse

Smita Kapse

Updated on 19-Jun-2020 13:56:19

52 Views

Different unit values which can be used with MySQL INTERVAL keyword are as follows −MICROSECONDThis unit will be used for adding or subtracting the number of specified microseconds from the current time or as provided by the user.mysql> Select NOW()+INTERVAL 100 MICROSECOND +--------------------------------+ | NOW()+INTERVAL 100 MICROSECOND | +--------------------------------+ ... Read More

What is ondblclick event in JavaScript?

Smita Kapse

Smita Kapse

Updated on 19-Jun-2020 11:05:15

239 Views

Use the ondblclick event to generate an event on double click.ExampleYou can try to run the following code to learn how to work with ondblclick event in JavaScript −                                         Double Click me    

How to get the sine of a number in JavaScript?

Smita Kapse

Smita Kapse

Updated on 19-Jun-2020 07:54:06

137 Views

To get the sine of a number, use the JavaScript sine() technique. The sin technique returns a numeric value between -1 and one, that represents the sine of the argumentExampleYou can try to run the following code to get the sine of a number in JavaScript −       ... Read More

How to convert a Unix timestamp to time in JavaScript?

Smita Kapse

Smita Kapse

Updated on 18-Jun-2020 12:14:03

157 Views

To convert a Unix timestamp to time, you can try to run the following code in JavaScript −ExampleLive Demo           JavaScript Dates                        var unix_time = 1514791901 ;          var date = ... Read More

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