Questions tagged [cross-browser]

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.

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. This contrasts with the concept of developing for one browser or engine.

9067 questions
79
votes
10 answers

Cross-platform, cross-browser way to play sound from Javascript?

I am writing a dhtml application that creates an interactive simulation of a system. The data for the simulation is generated from another tool, and there is already a very large amount of legacy data. Some steps in the simulation require that we…
Jake Stevenson
  • 3,009
  • 6
  • 35
  • 40
78
votes
3 answers

document.body.scrollTop Firefox returns 0 : ONLY JS

Any alternatives in pure javascript? The following works in opera, chrome and safari. Have not tested yet on explorer: http://monkey-me.herokuapp.com https://github.com/coolcatDev/monkey-me-heroku/blob/master/static/js/myscripts.js At page load…
Al Ex Tsm
  • 2,042
  • 2
  • 29
  • 47
77
votes
14 answers

Cross-Browser Method to Determine Vertical Scroll Percentage in Javascript

How can I find out what percentage of the vertical scrollbar a user has moved through at any given point? It's easy enough to trap the onscroll event to fire when the user scrolls down the page, but how do I find out within that event how far they…
majelbstoat
  • 12,889
  • 4
  • 28
  • 26
76
votes
12 answers

Online Internet Explorer Simulators

(Tried to find simular questions / duplicates, failed) I develop on a mac. I love my mac. I develop using Chrome, Firefox, and Safari. I love them all for different reasons. But I have to develop for Internet Explorer users as well. I know, I am…
75
votes
5 answers

Find the exact height and width of the viewport in a cross-browser way

I'm trying to find the exact height and width of a browser's viewport, but I suspect that either Mozilla or IE is giving me the wrong number. Here's my method for height: var viewportHeight = window.innerHeight || …
Alex Grin
  • 8,121
  • 6
  • 33
  • 57
74
votes
3 answers

Cross-Browser Javascript XML Parsing

Are there any cross-browser / cross-platform ways to parse XML files in Javascript?
sazr
  • 24,984
  • 66
  • 194
  • 362
73
votes
6 answers

Vertically and horizontally centering text in circle in CSS (like iphone notification badge)

I'm looking for a way of to do a cross-browser iphone-like badge in CSS3. I'd obviously like to use one div for this, but alternative solutions would be fine. The important factor is that it needs to be horizontally and vertically centered in all…
Matt
  • 22,224
  • 25
  • 80
  • 116
72
votes
13 answers

Button inside of anchor link works in Firefox but not in Internet Explorer?

Everything else in my site seems to be compatible with all browsers except for my links. They appear on the page, but they do not work. My code for the links are as follows-

Jason
72
votes
5 answers

What is the stability of the Array.sort() method in different browsers?

I know that the ECMA Script specification does not specify which algorithm to use for sorting arrays, nor does it specify whether the sort should be stable. I've found this information for Firefox which specifies that firefox uses a stable…
Boushley
  • 6,816
  • 4
  • 27
  • 29
71
votes
2 answers

header/footer/nav tags - what happens to these in IE7, IE8 and browsers than don't support HTML5?

I am eager to start using Html5 in particular the
/
/
/
Martin
  • 23,844
  • 55
  • 201
  • 327
70
votes
5 answers

Greyscale Background Css Images

I've searched a lot on the web but I cannot find a cross browser solution to fade a css backgrund image to greyscale and back. The only working solution is to apply CSS3 filter greyscale: -webkit-filter: grayscale(100%); but this works just with…
bluantinoo
  • 1,829
  • 3
  • 19
  • 25
69
votes
4 answers

Cross-Browser Extensions API?

There are tools for developing cross-platform browser plugins. Are there any similar tools or APIs for browser extensions (i.e. toolbars, or filter systems like AdBlock)?
Justin Alexander
  • 2,004
  • 3
  • 21
  • 25
69
votes
14 answers

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 bad idea, but for some specific website, it is needed). I did it successfully by listening the keyboard shortcut CTRL + / CTRL - and adding…
Basj
  • 41,386
  • 99
  • 383
  • 673
67
votes
15 answers

"google is not defined" when using Google Maps V3 in Firefox remotely

Here's my conundrum: I have a page that uses Google Maps V3 and jQuery. It all worked well locally in FF5, Chrome and Safari. Once I uploaded to a web site, I get a "google is not defined" error on the first line that I try to use a google…
Traveling Tech Guy
  • 27,194
  • 23
  • 111
  • 159
67
votes
8 answers

Is SNI actually used and supported in browsers?

I can find various information about SNI (see Wikipedia), but I can't find any statistics about actual support in browsers. The best I could find out is that it should work on Windows XP with SP3. Does anyone know if SNI can actually be used in…
Aljosa Mohorovic
  • 771
  • 1
  • 5
  • 4