Giri Raju has Published 114 Answers

What HTML forms are and how to use them?

Giri Raju

Giri Raju

Updated on 10-Jan-2020 11:11:33

HTML Forms are needed to collect some data from the site visitor. For example, collecting information about a student like a name, age, address, marks, etc, while he/she is registering on the college website.A form takes input from the site visitor and posts it to a back-end application such as ... Read More

Why does the JavaScript void statement evaluate an expression?

Giri Raju

Giri Raju

Updated on 10-Jan-2020 10:25:15

The JavaScript void returns an expression to remove the side effect and return the undefined primitive value. This side effect may occur while inserting expression in a web page.Let’s see an example of the void. The void(0) can be used with hyperlinks to obtain the undefined primitive value, ExampleLive Demo<!DOCTYPE ... Read More

What is the use of JavaScript cookies?

Giri Raju

Giri Raju

Updated on 09-Jan-2020 08:33:06

Using cookies is the most efficient method of remembering and tracking preferences, purchases, commissions, and other information required for better visitor experience or site statistics.Your server sends some data to the visitor's browser in the form of a cookie. The browser may accept the cookie. If it does, it is ... Read More

How to define nested functions in JavaScript?

Giri Raju

Giri Raju

Updated on 09-Jan-2020 06:51:41

JavaScript 1.2 allows function definitions to be nested within other functions as well. Still, there is a restriction that function definitions may not appear within loops or conditionals. These restrictions on function definitions apply only to function declarations with the function statement.ExampleYou can try to run the following example to ... Read More

How to create a line break with JavaScript?

Giri Raju

Giri Raju

Updated on 02-Jan-2020 10:04:49

To create a line break in JavaScript, use “<br>”. With this, we can add more than one line break also.ExampleLet’s see it in the below example:<html>    <body>       <script>          <!--             document.write("Hello World!");           ... Read More

What ECMAScript 6 features can I currently use in web browsers?

Giri Raju

Giri Raju

Updated on 02-Jan-2020 09:41:54

The full form of ECMA is European Computer Manufacturer's Association. ECMAScript is a Standard for scripting languages such as JavaScript, JScript, etc. It is a trademark scripting language specification. JavaScript is a language based on ECMAScript. A standard for scripting languages like JavaScript, JScript is ECMAScript. JavaScript is considered as ... Read More

How can MySQL work with PHP programming language?

Giri Raju

Giri Raju

Updated on 20-Dec-2019 06:25:34

MySQL works very well in combination with various programming languages like PERL, C, C++, JAVA, and PHP. Out of these languages, PHP is the most popular one because of its web application development capabilities.PHP provides various functions to access the MySQL database and to manipulate the data records inside the ... Read More

Sort data in SQL using Dynamic SQL in SAP HANA

Giri Raju

Giri Raju

Updated on 05-Dec-2019 09:51:18

In order to execute dynamic SQL in your stored procedure, you need to use the ‘EXECUTE IMMEDIATE’ statement. You can use SQL as shown below to execute it:EXECUTE IMMEDIATE 'SELECT <COLUMN NAMEs> FROM <TABLE NAME> ' || :<ORDERING COLUMN> || ' DESC';Another thing to notice over here is that if ... Read More

How I can show JavaScript alert box in the middle of the screen?

Giri Raju

Giri Raju

Updated on 25-Sep-2019 08:53:43

To show the JavaScript alert box in the middle, you need to use the custom alert box. Under that, style it accordingly and position it to the center. Use the “top” and “left” CSS properties to achieve this. Set them as 50%, but as you can see a button below, ... Read More

How to give a warning for Non-JavaScript Browsers?

Giri Raju

Giri Raju

Updated on 12-Sep-2019 08:47:00

To let users know about non-JavaScript web browsers, use the <noscript> tag. The HTML <noscript> tag is used to handle the browsers, which do recognize <script> tag but do not support scripting. This tag is used to display alternate text messageHere’s an example, <!DOCTYPE html> <html>    <head>     ... Read More

Advertisements