Front End Technology Articles - Page 483 of 860

HTML DOM Window stop() Method

AmitDiwan
Updated on 15-Feb-2021 04:37:58

270 Views

The HTML DOM Window stop() provides user the functionality to stop loading the resources of a window without clicking the browser stop button.SyntaxFollowing is the syntax −window.stop()ExampleLet us see an example of HTML DOM Window stop() method − HTML DOM Window stop()    * {       padding: 2px;       margin:5px;    }    form {       width:70%;       margin: 0 auto;       text-align: center;    }    input[type="button"] {       border-radius: 10px;                   ... Read More

HTML DOM Window parent Property

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

854 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: 2px;       margin:5px;    }    form {       width:70%;       margin: 0 auto;       text-align: center;    }    input[type="button"] {       border-radius: 10px;                    HTML-DOM-Window-parent   ... Read More

HTML DOM Window opener Property

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

662 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    * {       padding: 2px;       margin:5px;    }    form {       width:70%;       margin: 0 auto;       text-align: center;    }    input[type="button"] {       border-radius: 10px;                 ... Read More

HTML DOM localStorage Properties

AmitDiwan
Updated on 15-Feb-2021 04:38:59

245 Views

The HTML DOM localStorage Properties enables user to store key-value pairs in local browser itself for future reference. Key-value pairs are not lost until explicitly removed/cleared.SyntaxFollowing is the syntax −Window.localStorageHere, localStorage can have following properties/methods −setItem(‘key’, ’value’)getItem(‘key’)removeItem(‘key’)Let us see an example of localStorage properties −Example Live Demo LocalStorage clear()    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    }    table, th, td { ... Read More

HTML DOM Window frames Property

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

247 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    * {       padding: 2px;       margin:5px;    }    form {       width:70%;       margin: 0 auto;       text-align: center;    }    input[type="button"] {       border-radius: 10px;                    HTML-DOM-Window-frames   ... Read More

HTML DOM Window frameElement Property

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

286 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    * {       padding: 2px;       margin:5px;    }    form {       width:70%;       margin: 0 auto;       text-align: center;    }    input[type="button"] {       border-radius: 10px;           ... Read More

HTML DOM Window closed Property

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

182 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    * {       padding: 2px;       margin:5px;    }    form {       width:70%;       margin: 0 auto;       text-align: center;    }    input[type="button"] {       border-radius: 10px;                   ... Read More

HTML DOM WheelEvent deltaY Property

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

256 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 − HTML DOM WheelEvent deltaY    * {       padding: 2px;       margin:5px;    }    form {       width:70%;       margin: 0 auto;       text-align: center;    }    input[type="button"] {       border-radius: 10px;    }   ... Read More

HTML DOM WheelEvent deltaX Property

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

156 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 HTML DOM WheelEvent deltaX    * {       padding: 2px;       margin:5px;    }    form {       width:70%;       margin: 0 auto;       text-align: center;    }    input[type="button"] {       border-radius: 10px;    }   ... Read More

HTML DOM Video width Property

AmitDiwan
Updated on 15-Feb-2021 04:46:52

136 Views

The HTML DOM Video width property returns/sets a number corresponding to width (in pixels) of media.SyntaxFollowing is the syntax −Returning width as a number (px)mediaObject.widthSetting width to a number (px)mediaObject.width = numberLet us see an example of Video width property −Example Live Demo HTML DOM Video width    * {       padding: 2px;       margin:5px;    }    form {       width:70%;       margin: 0 auto;       text-align: center;    }    input[type="button"] {       border-radius: 10px;    }         ... Read More

Advertisements