Skip to main content

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.

1081 votes
10 answers
710k views

What is a clearfix?

Recently I was looking through some website's code, and saw that every <div> had a class clearfix. After a quick Google search, I learned that it is for IE6 sometimes, but what actually is a ...
H Bellamy's user avatar
  • 22.6k
1901 votes
30 answers
1.3m views

How do we control web page caching, across all browsers?

Our investigations have shown us that not all browsers respect the HTTP cache directives in a uniform manner. For security reasons we do not want certain pages in our application to be cached, ever, ...
Edward Wilde's user avatar
  • 26.3k
1113 votes
21 answers
682k views

What is JavaScript's highest integer value that a number can go to without losing precision?

Is this defined by the language? Is there a defined maximum? Is it different in different browsers?
TALlama's user avatar
  • 16.3k
6106 votes
45 answers
2.7m views

How to disable text selection highlighting

For anchors that act like buttons (for example, the buttons on the sidebar of this Stack Overflow page titled Questions, Tags, and Users) or tabs, is there a CSS standard way to disable the ...
user avatar
1646 votes
26 answers
2.2m views

How do I style a <select> dropdown with only CSS?

Is there a CSS-only way to style a <select> dropdown? I need to style a <select> form as much as humanly possible, without any JavaScript. What are the properties I can use to do so in ...
Jitendra Vyas's user avatar
295 votes
15 answers
233k views

'innerText' works in IE, but not in Firefox

I have some JavaScript code that works in IE containing the following: myElement.innerText = "foo"; However, it seems that the 'innerText' property does not work in Firefox. Is there some Firefox ...
Ray's user avatar
  • 191k
2454 votes
21 answers
2.2m views

Get the size of the screen, current web page and browser window

How can I get windowWidth, windowHeight, pageWidth, pageHeight, screenWidth, screenHeight, pageX, pageY, screenX, screenY which will work in all major browsers?
turtledove's user avatar
  • 25.8k
473 votes
36 answers
686k views

CSS technique for a horizontal line with words in the middle

I'm trying to make a horizontal rule with some text in the middle. For example: ----------------------------------- my title here ----------------------------- Is there a way to do that in CSS? ...
Jason's user avatar
  • 15.3k
634 votes
7 answers
256k views

Are the PUT, DELETE, HEAD, etc methods available in most web browsers?

I've seen a couple questions around here like How to debug RESTful services, which mentions: Unfortunately that same browser won't allow me to test HTTP PUT, DELETE, and to a certain degree even ...
John Millikin's user avatar
382 votes
23 answers
497k views

JavaScript get clipboard data on paste event (Cross browser)

How can a web application detect a paste event and retrieve the data to be pasted? I would like to remove HTML content before the text is pasted into a rich text editor. Cleaning the text after ...
Alex's user avatar
  • 12.4k
1039 votes
17 answers
917k views

How to get the browser viewport dimensions?

I want to provide my visitors the ability to see images in high quality, is there any way I can detect the window size? Or better yet, the viewport size of the browser with JavaScript? See green area ...
Alix Axel's user avatar
  • 154k
380 votes
23 answers
923k views

How to Detect Browser Back Button event - Cross Browser

How do you definitively detect whether or not the user has pressed the back button in the browser? How do you enforce the use of an in-page back button inside a single page web application using a #...
Xarus's user avatar
  • 6,879
168 votes
4 answers
102k views

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 which can sometimes result in unknown/unwanted behaviour. For example Input boxes ...
Nachshon Schwartz's user avatar
158 votes
12 answers
177k views

css 'pointer-events' property alternative for IE

I have a drop down navigation menu in which some of the title should not navigate to other page when clicked(these title open a drop down menu when clicked on) while others should navigate (these dont ...
Anupam's user avatar
  • 8,016
5 votes
1 answer
7k views

JS li tag onclick not working on IE8

Am using Below JS,but li onclick is not working on IE8 browser. jsfiddle link : http://jsfiddle.net/sudheera/DUZ3B/14/ HTML <div class="primaryNav fl"> <ul id="hd_vertical" class="...
Sudheera's user avatar
  • 165

15 30 50 per page
1
2 3 4 5
93