AmitDiwan has Published 10740 Articles

HTML DOM MouseEvent pageY Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 12:24:33

120 Views

The HTML DOM MouseEvent pageY property returns the vertical (y) coordinate of the mouse pointer relative to the document if a mouse event was triggered. Use with pageX to get the horizontal coordinate as well.Following is the syntax −Returning reference to the pageY objectMouseEventObject.pageYLet us see an example of MouseEvent ... Read More

HTML DOM MouseEvent pageX Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 12:10:10

129 Views

The HTML DOM MouseEvent pageX property returns the horizontal (x) coordinate of the mouse pointer relative to the document if a mouse event was triggered. Use with pageY to get the vertical coordinate as well.Following is the syntax −Returning reference to the pageX objectMouseEventObject.pageXLet us see an example of MouseEvent ... Read More

HTML DOM MouseEvent offsetY Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 12:03:43

122 Views

The HTML DOM MouseEvent offsetY property returns the vertical (y) coordinate of the mouse pointer relative to the target element if a mouse event was triggered. Use with offsetX to get the horizontal coordinate as well.Following is the syntax −Returning reference to the offsetY objectMouseEventObject.offsetYLet us see an example of ... Read More

HTML DOM MouseEvent clientY Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 11:36:40

136 Views

The HTML DOM MouseEvent clientY property returns the vertical (y) coordinate of the mouse pointer if a mouse event was triggered. Use with clientX to get the horizontal coordinate as well.Following is the syntax −Returning reference to the clientY objectMouseEventObject.clientYLet us see an example of MouseEvent clientY property:Example Live Demo ... Read More

HTML DOM MouseEvent clientX Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 11:31:01

171 Views

The HTML DOM MouseEvent clientX property returns the horizontal (x) coordinate of the mouse pointer if a mouse event was triggered. Use with clientY to get the vertical coordinate as well.Following is the syntax −Returning reference to the clientX objectMouseEventObject.clientXLet us see an example of MouseEvent clientX property −Example Live Demo ... Read More

HTML DOM Meter optimum Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 11:22:03

124 Views

The HTML DOM Meter optimum property returns/sets a number corresponding to the optimum attribute of a element. Use this with high, low, min and max attributes for better results.NOTE: Don’t use as a progress bar but only as a gauge.Following is the syntax:Returning value of the optimum propertymeterElementObject.optimumValue ... Read More

HTML DOM Meter Object

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 11:17:46

200 Views

The HTML DOM Meter Object in HTML represents the element.NOTE: Don’t use as a progress bar but only as a gauge.Following is the syntax −Creating a elementvar meterObject = document.createElement(“METER”)Here, “meterObject” can have the following properties −PropertyDescriptionhighIt sets/returns the value ofthe high attribute in a gaugelabelsIt returns ... Read More

Using variables with MySQL prepare statement

AmitDiwan

AmitDiwan

Updated on 10-Oct-2019 12:34:09

186 Views

Let us first create a table −mysql> create table DemoTable (    Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,    FirstName varchar(20),    LastName varchar(20) ); Query OK, 0 rows affected (0.53 sec)Insert some records in the table using insert command −mysql> insert into DemoTable(FirstName, LastName) values('John', 'Smith'); Query OK, ... Read More

MySQL query to count occurrences of distinct values and display the result in a new column?

AmitDiwan

AmitDiwan

Updated on 10-Oct-2019 12:31:39

611 Views

Let us first create a table −mysql> create table DemoTable (    Value int ); Query OK, 0 rows affected (0.57 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values(80); Query OK, 1 row affected (0.12 sec) mysql> insert into DemoTable values(90); Query OK, 1 ... Read More

Get the sum of last 3 digits from all the values in a column with MySQL

AmitDiwan

AmitDiwan

Updated on 10-Oct-2019 12:29:08

229 Views

Since we want the sum of last 3 digits, we need to use aggregate function SUM() along with RIGHT(). Let us first create a table −mysql> create table DemoTable (    Code int ); Query OK, 0 rows affected (0.77 sec)Insert some records in the table using insert command −mysql> ... Read More

Advertisements