Top "Cross-browser" questions

Cross-browser development refers to the practice of building web sites, web applications, libraries, or components so that they function across different web browsers and rendering engines.

Uncaught TypeError: Object.values is not a function JavaScript

I have a simple object like the one below: var countries = { "Argentina":1, "Canada":2, "Egypt":1, }; I need to create two arrays. …

javascript arrays node.js object cross-browser
Should PUT and DELETE be used in forms?

Assuming my web application has full support of PUT and DELETE on the server side, should I make use of …

html http rest cross-browser
Browsers' default CSS for HTML elements

Where can I find a browser's default CSS for HTML elements? Many HTML elements come with some default CSS properties …

html css cross-browser
Prevent zoom cross-browser

For a map-like tool, I would like to disable the browser zooming feature. (I know that this is generally a …

javascript html css cross-browser
How can I make event.srcElement work in Firefox and what does it mean?

there is an if statement on my company's website that makes one web page imcompatible with firefox if(event.srcElement.…

javascript firefox cross-browser
How to add/remove a class in JavaScript?

Since element.classList is not supported in IE 9 and Safari-5, what's an alternative cross-browser solution? No-frameworks please. Solution must work …

javascript dom cross-browser
Fixing JavaScript Array functions in Internet Explorer (indexOf, forEach, etc.)

As detailed elsewhere, and otherwise apparently well-known, Internet Explorer (definitely version 7, and in some instances, version 8) do not implement key …

javascript internet-explorer cross-browser
Javascript: document.execCommand cross-browser?

I just stumble on a piece of code which I never saw before: document.execCommand('Copy'); which seems to copy …

javascript cross-browser
Math.round(num) vs num.toFixed(0) and browser inconsistencies

Consider the following code: for (var i=0;i<3;i++){ var num = i + 0.50; var output = num + " " + Math.round(num) + " " + num.…

javascript cross-browser
Linear gradient in Chrome and Safari browsers

I am having trouble showing a linear gradient in Safari and Chrome. In Firefox it shows up fine. I am …

css cross-browser linear-gradients