Nishtha Thakur has Published 498 Articles

What are the document properties which can be accessed using Legacy DOM?

Nishtha Thakur

Nishtha Thakur

Updated on 23-Jun-2020 07:22:35

130 Views

The following are the document properties which can be accessed using Legacy DOM −Sr.NoProperty & Description1alinkColorDeprecated − A string that specifies the color of activated links.Ex − document.alinkColor2anchors[ ]An array of Anchor objects, one for each anchor that appears in the documentEx − document.anchors[0], document.anchors[1] and so on3applets[ ]An array ... Read More

How can I turn on error information in my Web Browser?

Nishtha Thakur

Nishtha Thakur

Updated on 23-Jun-2020 07:04:14

351 Views

The most basic way to track down errors is by turning on error information in your browser. By default, Internet Explorer shows an error icon in the status bar when an error occurs on the page.Double-clicking this icon takes you to a dialog box showing information about the specific error ... Read More

What is the best way to do optional function parameters in JavaScript?

Nishtha Thakur

Nishtha Thakur

Updated on 23-Jun-2020 06:49:42

252 Views

To include optional function parameters in JavaScript, you can try the following, function myFunc(a, b = 0) {    // function body }ExampleYou can try to run the following code to learn how to include optional function parameters −                    // ... Read More

Write a Regular Expression to remove all special characters from a JavaScript String?

Nishtha Thakur

Nishtha Thakur

Updated on 23-Jun-2020 05:34:43

700 Views

To remove all special characters from a JavaScript string, you can try to run the following code −Example                    var str = "@!Welcome to our website$$";          document.write(str);                    // Removing Special Characters          document.write(""+str.replace(/[^\w\s]/gi, ''));                      

How can we escape special characters in MySQL statement?

Nishtha Thakur

Nishtha Thakur

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

1K+ Views

Sometimes we need to include special characters in a character string and at that time they must be escaped or protected. We need to pursue some basic rules for escaping special characters which are given below −The escape character (\) can be escaped as (\)Examplemysql> Select 'A\B'; +-----+ | A\B ... Read More

How can I combine built-in-commands (g and G), used for executing a MySQL statement, with termination symbol semicolon (;) to get output without any error?

Nishtha Thakur

Nishtha Thakur

Updated on 22-Jun-2020 11:20:38

118 Views

As we know that built-in-commands (\G and \g) send the command to MySQL server for execution and with the help of Semicolon (;) MySQL determines the end of the statement. It is also known that both of them have different format of the result set. For combining them and getting ... Read More

What are the most significant differences between MySQL functions and procedures?

Nishtha Thakur

Nishtha Thakur

Updated on 22-Jun-2020 07:49:46

4K+ Views

The most significant difference between procedures and functions is that they are invoked differently and for different purposes. Other than that following are the differences between procedure and functions −A procedure does not return a value. Instead, it is invoked with a CALL statement to perform an operation such as ... Read More

In MySQL, how can we declare a handler while handling errors?

Nishtha Thakur

Nishtha Thakur

Updated on 22-Jun-2020 06:33:33

651 Views

It is very important to handle the errors by throwing a proper error message. MySQL provides a handler to handle the error. We can declare a handler with the help of the following syntax −Syntax of handlerDECLARE handler_action FOR condition_value statement;The above syntax shows that we need to use DECLARE ... Read More

How can I create MySQL stored procedure with INOUT parameter?

Nishtha Thakur

Nishtha Thakur

Updated on 22-Jun-2020 05:25:09

1K+ Views

Following example will demonstrate MySQL stored procedure with INOUT parameter −mysql> DELIMITER // ; mysql> Create PROCEDURE counter(INOUT count INT, IN increment INT)     -> BEGIN     -> SET count = count + increment;     -> END // Query OK, 0 rows affected (0.03 sec)Here, ‘count’ is the ... Read More

Light Speed Out Animation Effect with CSS

Nishtha Thakur

Nishtha Thakur

Updated on 20-Jun-2020 06:20:40

196 Views

To create a light speed out effect with CSS, you can try to run the following code:Live Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;         ... Read More

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