Jennifer Nicholas has Published 291 Articles

What is the best way to break from nested loops in JavaScript?

Jennifer Nicholas

Jennifer Nicholas

Updated on 12-Jun-2020 13:16:07

1K+ Views

The best way to break from nested loops is to use labels. A label can be used with break and continue to control the flow more precisely. A label is simply an identifier followed by a colon (:) that is applied to a statement or a block of code.ExampleYou can try to run ... Read More

Allow only access to camera device in HTML5

Jennifer Nicholas

Jennifer Nicholas

Updated on 04-Jun-2020 09:50:55

234 Views

The only access to camera device is not possible in iOS. The official specification suggests the following −A User Agent implementation of this specification is advised to seek user consent before initiating capture of content by microphone or camera. This may be necessary to meet regulatory, legal and best practice ... Read More

Set the name of the form the element belongs to in HTML?

Jennifer Nicholas

Jennifer Nicholas

Updated on 30-May-2020 23:45:14

133 Views

Use the form attribute in HTML to set the name of the one or more form the element belongs to in HTML.ExampleYou can try to run the following code to implement the form attribute −                    SubjectID:          Subject Name:          Total Students:             Click    

How to search the value of the type attribute of a link in JavaScript?

Jennifer Nicholas

Jennifer Nicholas

Updated on 23-May-2020 11:22:09

197 Views

To search the value of the type attribute of a link in JavaScript, use the type property. You can try to run the following code to get the value of type attribute.Example           Qries                var x = document.getElementById("qriesid").type;          document.write("Value of the type attribute: "+x);          

How to stop the execution of a function with JavaScript?

Jennifer Nicholas

Jennifer Nicholas

Updated on 21-May-2020 07:45:40

9K+ Views

To stop the execution of a function in JavaScript, use the clearTimeout() method. This function call clears any timer set by the setTimeout() functions.ExampleYou can try to run the following code to learn how to work with clearTimeout() method in JavaScript.           JavaScript clearTimeout() method   ... Read More

Features detected by Modernizr

Jennifer Nicholas

Jennifer Nicholas

Updated on 04-Mar-2020 08:16:00

601 Views

The following is the list of features that can be detected by Modernizr −FeatureCSS PropertyJavaScript Check@font-face.fontfaceModernizr.fontfaceCanvas.canvasModernizr.canvasCanvas Text.canvastextModernizr.canvastextHTML5 Audio.audioModernizr.audioHTML5 Audio formatsNAModernizr.audio[format]HTML5 Video.videoModernizr.videoHTML5 Video FormatsNAModernizr.video[format]rgba().rgbaModernizr.rgbahsla().hslaModernizr.hslaborder-image.borderimageModernizr.borderimageborder-radius.borderradiusModernizr.borderradiusbox-shadow.boxshadowModernizr.boxshadowMultiple backgrounds.multiplebgsModernizr.multiplebgsOpacity.opacityModernizr.opacityCSS Animations.cssanimationsModernizr.cssanimationsCSS Columns.csscolumnsModernizr.csscolumnsCSS Gradients.cssgradientsModernizr.cssgradientsCSS Reflections.cssreflectionsModernizr.cssreflectionsCSS 2D Transforms.csstransformsModernizr.csstransformsCSS 3D Transforms.csstransforms3dModernizr.csstransforms3dCSS Transitions.csstransitionsModernizr.csstransitionsGeolocation API.geolocationModernizr.geolocationInput TypesNAModernizr.inputtypes[type]Input AttributesNAModernizr.input[attribute]localStorage.localstorageModernizr.localstoragesessionStorage.sessionstorageModernizr.sessionstorageWeb Workers.webworkersModernizr.webworkersapplicationCache.applicationcacheModernizr.applicationcacheSVG.svgModernizr.svgSVG Clip Paths.svgclippathsModernizr.svgclippathsSMIL.smilModernizr.smilWeb SQL Database.websqldatabaseModernizr.websqldatabaseIndexedDB.indexeddbModernizr.indexeddbWeb Sockets.websocketsModernizr.websocketsHashchange Event.hashchangeModernizr.hashchangeHistory Management.historymanagementModernizr.historymanagementDrag and Drop.draganddropModernizr.draganddropCross-window Messaging.crosswindowmessagingModernizr.crosswindowmessagingaddTest() Plugin APINAModernizr.addTest(str, fn)Read More

How to specify that an option should be pre-selected when the page loads in HTML?

Jennifer Nicholas

Jennifer Nicholas

Updated on 03-Mar-2020 11:10:09

148 Views

Use the selected attribute to specify that the option should be pre-selected when page loads in HTML. You can try to run the following code to implement selected attribute −Example           HTML selected attribute               Here's the list of subjects. Select any one:                             Computer Architecture             Java             Discrete Mathematics                    

How do we create a footer for a document or section in HTML5?

Jennifer Nicholas

Jennifer Nicholas

Updated on 03-Mar-2020 07:06:18

311 Views

Use the HTML tag to display a footer for a document or section. You can try to run the following code to implement tag −Example           HTML Footer Tag                        Simply Easy Learning          You're visiting tutorialspoint.com - tutorial hub for simply easy learning.                      © Copyright 2018, All Rights Reserved          

How to create a section in a document in HTML?

Jennifer Nicholas

Jennifer Nicholas

Updated on 03-Mar-2020 06:20:17

10K+ Views

Use the tag to add a section in a document. The HTML tag is used for defining a section of your document. With the div tag, you can group large sections of HTML elements together and format them with CSS.ExampleYou can try the following code to create a ... Read More

How to set whether an element is draggable or not in HTML?

Jennifer Nicholas

Jennifer Nicholas

Updated on 03-Mar-2020 05:32:47

556 Views

Use the draggable attribute to set whether the element is draggable or not. Set it using the values true and false.ExampleYou can try to run the following code to implement draggable element and drag an element −                 .drag {       ... Read More

Previous 1 ... 6 7 8 9 10 ... 30 Next
Advertisements