Jennifer Nicholas has Published 291 Articles

How to set the type of line in a text-decoration with JavaScript?

Jennifer Nicholas

Jennifer Nicholas

Updated on 23-Jun-2020 11:26:01

166 Views

To set the type of line in text-decoration, use the textDecorationLine property. You can try to run the following code to return the type of line in a text-decoration with JavaScript −Example                    This is demo text.       ... Read More

Set the hour for a specified date according to universal time?

Jennifer Nicholas

Jennifer Nicholas

Updated on 23-Jun-2020 08:15:29

130 Views

JavaScript date setUTCHours() method sets the hour for a specified date according to local time. The following is the parameter for setUTCHours(hoursValue[, minutesValue[, secondsValue[, msValue]]]) −hoursValue − An integer between 0 and 23, representing the hour.minutesValue − An integer between 0 and 59, representing the minutes.secondsValue − An integer between ... Read More

What is the role of throw statement in JavaScript?

Jennifer Nicholas

Jennifer Nicholas

Updated on 23-Jun-2020 07:25:09

173 Views

Use the throw statement to raise your built-in exceptions or your customized exceptions. Later these exceptions can be captured and you can take appropriate action.ExampleYou can try to run the following code to implement throw statement −                                         Click the following to see the result:                          

What are different Navigator methods available?

Jennifer Nicholas

Jennifer Nicholas

Updated on 23-Jun-2020 06:56:24

210 Views

You can use several Navigator related properties in your web page. The following are the properties −Sr.NoProperties & Description1javaEnabled()This method determines if JavaScript is enabled in the client. If JavaScript is enabled, this method returns true; otherwise, it returns false.2plugings.refreshThis method makes newly installed plug-ins available and populates the plugins ... Read More

What are common HTML Events supported by JavaScript?

Jennifer Nicholas

Jennifer Nicholas

Updated on 23-Jun-2020 06:45:25

176 Views

The following are some of the common HTML events supported by JavaScript −AttributeValueDescriptiononclickscriptTriggers on a mouse clickoncontextmenuscriptTriggers when a context menu is triggeredondblclickscriptTriggers on a mouse double-clickondragscriptTriggers when an element is draggedondragendscriptTriggers at the end of a drag operationondragenterscriptTriggers when an element has been dragged to a valid drop targetondragleavescriptTriggers ... Read More

How can we create a MySQL table by using PHP script?

Jennifer Nicholas

Jennifer Nicholas

Updated on 22-Jun-2020 13:28:25

214 Views

As we know that PHP provides us the function named mysql_query to create a MySQL table. To illustrate this we are using the following example −In this example, we are creating a table named ‘Tutorials_tbl’ with the help of PHP script inExample           Creating MySQL Tables                  

How can we simulate the MySQL INTERSECT query?

Jennifer Nicholas

Jennifer Nicholas

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

271 Views

Since we cannot use INTERSECT query in MySQL, we will use IN operator to simulate the INTERSECT query. It can be understood with the help of the following example −ExampleIn this example, we are two tables namely Student_detail and Student_info having the following data −mysql> Select * from Student_detail; +-----------+---------+------------+------------+ ... Read More

How MySQL evaluates the statement written on different lines?

Jennifer Nicholas

Jennifer Nicholas

Updated on 22-Jun-2020 11:53:48

116 Views

Actually, MySQL determines the end of the statement when it got termination semicolon. Suppose if we are writing a single statement in different lines then after writing the first line, MySQL changes promptly from ‘mysql>’ to ‘->’ which indicates that MySQL has not seen a complete statement yet and is ... Read More

How can I query for all the tables having a particular column name?

Jennifer Nicholas

Jennifer Nicholas

Updated on 22-Jun-2020 08:31:31

139 Views

For writing MySQL query to get all the tables having a particular column name, we can use LIKE operator. It can be understood with the help of an example as follows −ExampleFollowing is the MySQL query to get all the tables having columns name ‘ID’ in it −mysql> Select Column_name ... Read More

What do you mean by Scope of variables inside MySQL stored procedure?

Jennifer Nicholas

Jennifer Nicholas

Updated on 22-Jun-2020 07:38:09

253 Views

Suppose if we declare a variable inside a BEGIN/END block then the scope of this variable would be in this particular block. We can also declare a variable with the same name inside another BEGIN/END block which will be totally legal but its scope would be inside its BEGIN/END block. ... Read More

Previous 1 ... 3 4 5 6 7 ... 30 Next
Advertisements