George John has Published 1234 Articles

HTML DOM Object Width Property

George John

George John

Updated on 29-Jun-2020 09:26:38

80 Views

The HTML DOM Object Width property is used to set or return the width of an object. This width is set in pixels. Following is the syntax to set the width of an object −objObject.widthFollowing is the syntax to return the width of an object −objObject.width = pixelsAbove, pixels is ... Read More

What does DELIMITER // do in a Trigger in MySQL?

George John

George John

Updated on 29-Jun-2020 09:09:05

2K+ Views

The DELIMITER // can be used to change the statement from semicolon (;) to //. Now you can write multiple statements with semi-colon in a trigger.Here is the demo of triggers. In this example whenever you enter the EmployeeSalary less than 1000 then it will by default set to 10000.Firstly, ... Read More

HTML

George John

George John

Updated on 29-Jun-2020 09:05:05

199 Views

The autofocus attribute of the element is used to set focus to the button whenever page loads.Following is the syntax −Above, we have set autofocus to a button. Let us now see an example to implement the autofocus attribute of the element −Example Live Demo    Demo ... Read More

HTML target Attribute

George John

George John

Updated on 29-Jun-2020 09:03:11

118 Views

The target attribute of the element allows you to set where the linked document will open, for example, new window, same frame, parent frame, etc.Following is the syntax −Here,  _blank is used to open the linked document in new window or tab, _self opens the linked document in the ... Read More

How to set max_connections in MySQL Programmatically?

George John

George John

Updated on 29-Jun-2020 08:57:05

230 Views

To set max_connections in MySQL programmatically, you can use SET command. The syntax is as follows −SET GLOBAL max_connections=yourIntegerValue;Let us implement the above query to set maximum connections. The query is as follows −mysql> set global max_connections=1000; Query OK, 0 rows affected (0.04 sec)Check maximum connections are set or not, ... Read More

HTML Tag

George John

George John

Updated on 29-Jun-2020 08:47:54

29 Views

The tag in HTML is used to set the strikethrough text.Note - The tag isn’t supported in HTML5Let us now see an example to implement the tag in HTML−Example Live Demo Product Launch    The product is in beta testing launch mode. OutputIn the above ... Read More

MySQL datatype to store month and year only?

George John

George John

Updated on 29-Jun-2020 08:12:26

4K+ Views

You need to store the date as the complete date time rather than storing only month and year. If you declare as a datetime then you can extract the month and year using MONTH() and YEAR() function from MySQL.The syntax is as follows −select MONTH(yourDateTimeColumnName) as anyVariableName1, YEAR(yourDateTimeColumnName) as anyVariableName2 ... Read More

Rotate In Up Right Animation Effect with CSS

George John

George John

Updated on 29-Jun-2020 07:19:39

128 Views

To create a rotate in upright animation effect with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;     ... Read More

Generate Random boolean in Java

George John

George John

Updated on 29-Jun-2020 06:14:19

12K+ Views

In order to generate Random boolean in Java, we use the nextBoolean() method of the java.util.Random class. This returns the next random boolean value from the random generator sequence.Declaration −The java.util.Random.nextBoolean() method is declared as follows −public boolean nextBoolean()Let us see a program to generate random boolean in Java −Example Live ... Read More

Implied addressing mode in 8085 Microprocessor

George John

George John

Updated on 29-Jun-2020 06:01:03

1K+ Views

In 8085 Instruction set, there is one mnemonic XCHG, which stands for eXCHanGe. This is an instruction to exchange contents of HL register pair with DE register pair. This instruction uses implied addressing mode. In the instruction, we don’t mention as “XCHG HL, DE”. It is implied that it will ... Read More

Advertisements