AmitDiwan has Published 10744 Articles

HTML DOM WheelEvent deltaX Property

AmitDiwan

AmitDiwan

Updated on 21-Dec-2021 08:47:05

153 Views

The HTML DOM WheelEvent deltaX property returns a signed number corresponding to whether user is scrolling left or right, if user is scrolling in any other direction this property returns 0.SyntaxFollowing is the syntax −Returning signed numberevent.deltaXLet us see an example of HTML DOM WheelEvent deltaX property −Example ... Read More

HTML DOM WheelEvent deltaY Property

AmitDiwan

AmitDiwan

Updated on 21-Dec-2021 08:43:57

253 Views

The HTML DOM WheelEvent deltaY property returns a signed number corresponding to whether user is scrolling up or down, if user is scrolling in any other direction this property returns 0.SyntaxFollowing is the syntax −Returning signed numberevent.deltaYExampleLet us see an example of HTML DOM WheelEvent deltaY property − ... Read More

HTML DOM Window closed Property

AmitDiwan

AmitDiwan

Updated on 21-Dec-2021 08:03:26

174 Views

The HTML DOM Window closed property returns a boolean value corresponding to the state of a window is closed or not.SyntaxFollowing is the syntax −Returning boolean valuewindow.closedExampleLet us see an example of HTML DOM Window closed property − HTML DOM Window closed    * {     ... Read More

HTML DOM Window frameElement Property

AmitDiwan

AmitDiwan

Updated on 21-Dec-2021 08:01:37

284 Views

The HTML DOM Window frameElement property returns a HTML element corresponding to the window in which it is embedded such as , , or .SyntaxFollowing is the syntax −Returning window embedding elementwindow.frameElementExampleLet us see an example of HTML DOM Window frameElement property − HTML DOM Window frameElement ... Read More

HTML DOM Window frames Property

AmitDiwan

AmitDiwan

Updated on 21-Dec-2021 07:57:17

240 Views

The HTML DOM Window frames property returns an object corresponding to the window, representing all frames present in it.SyntaxFollowing is the syntax −Returning frames in current windowwindow.framesLet us see an example of HTML DOM Window frames property −Example HTML DOM Window frames    * {       ... Read More

HTML DOM Window opener Property

AmitDiwan

AmitDiwan

Updated on 21-Dec-2021 07:54:23

655 Views

The HTML DOM Window opener property returns a reference to the parent window that launched/created the child window using open().SyntaxFollowing is the syntax −Returning reference of parent windowwindow.openerExampleLet us see an example of HTML DOM Window opener property − HTML DOM Window opener    * {   ... Read More

HTML DOM Window parent Property

AmitDiwan

AmitDiwan

Updated on 21-Dec-2021 07:51:23

845 Views

The HTML DOM Window parent property returns a reference to the parent window of the child window.SyntaxFollowing is the syntax −Returning reference of parent windowwindow.parentExampleLet us see an example of HTML DOM Window parent property − HTML DOM Window parent    * {       padding: ... Read More

Difference Between XML and HTML

AmitDiwan

AmitDiwan

Updated on 21-Dec-2021 07:38:09

814 Views

In this post, we will understand the difference between HTML and XML.HTMLIt refers to Hyper Text Markup Language.It helps create web pages and applications.It is a markup language.It helps create static pages as well.It helps display data.It doesn’t transport data.HyperText helps define link between multiple web pages.Markup Language helps define ... Read More

PHP program to check if a year is leap year or not

AmitDiwan

AmitDiwan

Updated on 20-Dec-2021 12:29:09

13K+ Views

To check if a year is leap year or not in PHP, the code is as follows −Example Live DemoOutputIt is not a leap yearA function named ‘year_check’ is defined that takes a year as a parameter. It checks to see if the year can be divided by 400 or 4 ... Read More

Python Pandas CustomBusinessHour - Check if the given timestamp is on offset or not

AmitDiwan

AmitDiwan

Updated on 22-Oct-2021 08:11:30

263 Views

To check if the given timestamp is on offset or not, use the CustomBusinessHour.is_on_offset() in Pandas. Pass the timestamp as an argument to check.At first, import the required libraries −import pandas as pdSet the timestamp object in Pandas −timestamp = pd.Timestamp('2021-11-14 05:20:30') Create the CustomBusinessHour Offset. CustomBusinessHour is the DateOffset ... Read More

Advertisements