Front End Technology Articles

Page 652 of 652

HTML DOM Link href Property

AmitDiwan
AmitDiwan
Updated on 30-Jul-2019 308 Views

The HTML DOM Link href property sets/returns the path/url of a linked document. −SyntaxFollowing is the syntax −Returning href attribute valuelinkObject.hrefSetting href to a stringlinkObject.href = stringBoolean ValuesHere, “string” can be the following −booleanValueDetailspathIt defines the absolute/relative path to a document.urlIt defines the url address of the document to be linked.ExampleLet us see an example for Link href property − Link href Link-href Sales Target Week:    var divDisplay = document.getElementById("divDisplay");    var inputWeek = document.getElementById("WeekSelect");    var extStyle = document.getElementById("extStyle");    divDisplay.textContent = 'Week ...

Read More

Execute a script when a Web Storage area is updated in HTML?

Ankitha Reddy
Ankitha Reddy
Updated on 30-Jul-2019 180 Views

Use the onstorage attribute in HTML to execute on Web Storage area update. You can try to run the following code to implement onstorage attribute − Example HTML onstorage Welcome Demo text

Read More

Same origin policy on mobile apps with HTML

George John
George John
Updated on 30-Jul-2019 323 Views

There are similar rules for native mobile apps and application. Only domain needs are to be added to white list in PhoneGap or Cardova.The device acts as a server and can access content from URL .If PhoneGap is used then domains are added to whitelist or a wildcard.While dealing with a native application, you expect to make requests from file://, instead of from https://. However, a request is not made across the HTTP protocol, so the same rules do not apply.Making requests from native mobile app, will allow you to make requests to any domain without any major issues.

Read More

HTML5 geolocation 'permission denied' error in Mobile Safari

Jennifer Nicholas
Jennifer Nicholas
Updated on 30-Jul-2019 546 Views

Whenever a mobile website is created and there is a requirement in which user is requested for current position on button click, then HTML5 geolocation is used.This is working fine in mobile chrome.However when in Mobile Safari, the user is prompted to share location and browser defaults to geolocation then browser is defaulted to Permission denied errorTo solve this, the Geolocation services in mobile services is turned on to get current location of requested user.

Read More

How to use sockets in JavaScriptHTML?

Ankitha Reddy
Ankitha Reddy
Updated on 30-Jul-2019 281 Views

To use sockets, consider the WebSocket interface in JavaScript. This interface enables web applications to maintain bidirectional communications with server-side processes. To enable Web applications to maintain bidirectional communications with server-side processes, this specification introduces the WebSocket interface. Here are some of the methods to workaround with Web Sockets − socket = new WebSocket(url [, protocols ] ) Create a new socket using this, wherein parameters URL is a string for the connection and protocols is a string or array of string. socket . send( data ) The above is used to send data. Used to ...

Read More

Maximum size of a element in HTML

Arjun Thakur
Arjun Thakur
Updated on 30-Jul-2019 2K+ Views

 All web browsers limit the canvas element’s width, height, and area.For Google Chrome, the maximum allowable width and height are 32,767 pixels and the maximum allowable area is 268,435,456 pixels.For Firefox, the maximum allowable width and height are 32,767 pixels and the maximum allowable area is 472,907,776 pixels. For IE, the maximum allowable width and height are 8,192 pixels. For IE Mobile, the maximum allowable width and height are 4,096 pixels.

Read More

When to use (document).ready() and when (window).load() in jQuery?

Alex Onsman
Alex Onsman
Updated on 30-Jul-2019 915 Views

$(window).load()Use $(window).load(), when you want the code inside it to run only once the entire page is ready (not only DOM).  It executes when the page is fully loaded, including frames, objects and imagesNote: The load() method deprecated in jQuery version 1.8. It was completely removed in version 3.0. To see its working, add jQuery version for CDN before 3.0.$(document).ready()Use the  $(document).ready() method when you want the code inside it to run once the page DOM is ready to execute JavaScript code.

Read More

Static HTML elements are written directly in SAPUI5

Johar Ali
Johar Ali
Updated on 30-Jul-2019 566 Views

SAPUI5 allows the developer to use their own static HTML elements with the use of UI5 controls in certain areas. It is not closed framework and allows you to use a sap.ui.core.HTML control to write any amount of plain HTML within an area rendered by UI5 so it allows you to easily mix HTML and UI5 controls.HTML created by UI5 controls, however, is created dynamically, but that's how many JavaScript UI libraries work when providing higher-level UI elements that would be hard to write in static HTML.You can refer to below link of SAPUI5 which tells more about HTML SAPUI5 ...

Read More
Showing 6511–6518 of 6,518 articles
« Prev 1 648 649 650 651 652 Next »
Advertisements