Questions tagged [firefox]

Mozilla Firefox is a free, open-source cross-platform web browser. Use this tag if your question is related to the inner workings of Firefox or if it relates to code that is not working on Firefox which does work in other browsers. Questions about Firefox add-on development should be tagged [firefox-addon]. If your question is about using Firefox for browsing (i.e. as an end user) you should ask your question on Super User instead.

firefox
Filter by
Sorted by
Tagged with
1895 votes
43 answers
2.8m views

Hide scroll bar, but while still being able to scroll

I want to be able to scroll through the whole page, but without the scrollbar being shown. In Google Chrome it's: ::-webkit-scrollbar { display: none; } But Mozilla Firefox and Internet ...
user_2215528's user avatar
  • 19.3k
1493 votes
19 answers
2.0m views

How to manually send HTTP POST requests from Firefox or Chrome browser

I want to test some URLs in a web application I'm working on. For that I would like to manually create HTTP POST requests (meaning I can add whatever parameters I like). Is there any functionality in ...
Pascal Klein's user avatar
  • 24.2k
1268 votes
31 answers
836k views

How can I tell if a DOM element is visible in the current viewport?

Is there an efficient way to tell if a DOM element (in an HTML document) is currently visible (appears in the viewport)? (The question refers to Firefox.)
benzaita's user avatar
  • 13.1k
728 votes
14 answers
686k views

Targeting only Firefox with CSS

Using conditional comments it is easy to target Internet Explorer with browser-specific CSS rules: <!--[if IE 6]> ...include IE6-specific stylesheet here... <![endif]--> Sometimes it is ...
avdgaag's user avatar
  • 41.7k
714 votes
6 answers
224k views

Difference between DOM parentNode and parentElement

Can somebody explain in simple terms, what is the difference between classical DOM parentNode and newly introduced in Firefox 9 parentElement
shabunc's user avatar
  • 23.9k
639 votes
37 answers
970k views

Selenium using Python - Geckodriver executable needs to be in PATH

I am going over Sweigart's Automate the Boring Stuff with Python text. I'm using IDLE and already installed the Selenium module and the Firefox browser. Whenever I tried to run the webdriver function, ...
tadm123's user avatar
  • 8,516
524 votes
25 answers
322k views

How to remove Firefox's dotted outline on BUTTONS as well as links?

I can make Firefox not display the ugly dotted focus outlines on links with this: a:focus { outline: none; } But how can I do this for <button> tags as well? When I do this: button:...
Edward Tanguay's user avatar
494 votes
6 answers
959k views

Is there a <meta> tag to turn off caching in all browsers? [duplicate]

I read that when you don't have access to the web server's headers you can turn off the cache using: <meta http-equiv="Cache-Control" content="no-store" /> But I also read that this doesn't ...
leeand00's user avatar
  • 25.8k
433 votes
18 answers
711k views

Custom CSS Scrollbar for Firefox

I want to customize a scrollbar with CSS. I use this WebKit CSS code, which works well for Safari and Chrome: ::-webkit-scrollbar { width: 15px; height: 15px; } ::-webkit-scrollbar-track-piece { ...
Dimitri Vorontzov's user avatar
421 votes
22 answers
816k views

JavaScript console.log causes error: "Synchronous XMLHttpRequest on the main thread is deprecated..."

I have been adding logs to the console to check the status of different variables without using the Firefox debugger. However, in many places in which I add a console.log in my main.js file, I ...
Nathan Basanese's user avatar
416 votes
17 answers
565k views

Why am I suddenly getting a "Blocked loading mixed active content" issue in Firefox?

This morning, upon upgrading my Firefox browser to the latest version (from 22 to 23), some of the key aspects of my back office (website) stopped working. Looking at the Firebug log, the following ...
Appulus's user avatar
  • 18.7k
405 votes
15 answers
603k views

JavaScript open in a new window, not tab

I have a select box that calls window.open(url) when an item is selected. Firefox will open the page in a new tab by default. However, I would like the page to open in a new window, not a new tab. ...
adam's user avatar
  • 6,642
378 votes
9 answers
569k views

Get image data URL in JavaScript?

I have a regular HTML page with some images (just regular <img /> HTML tags). I'd like to get their content, base64 encoded preferably, without the need to redownload the image (ie. it's already ...
Detariael's user avatar
  • 4,172
338 votes
10 answers
444k views

onchange event on input type=range is not triggering in Firefox while dragging

When I played with <input type="range">, Firefox triggers an onchange event only if we drop the slider to a new position where Chrome and others triggers onchange events while the slider is ...
Prasanth K C's user avatar
  • 7,202
338 votes
23 answers
348k views

jQuery $.ajax(), $.post sending "OPTIONS" as REQUEST_METHOD in Firefox

Having trouble with what I thought was a relatively simple jQuery plugin... The plugin should fetch data from a php script via ajax to add options to a <select>. The ajax request is pretty ...
fitzgeraldsteele's user avatar
300 votes
13 answers
178k views

How can I inspect disappearing element in a browser?

How can I inspect an element which disappears when my mouse moves away? I don't know its ID, class or anything but want to inspect it. Solutions I have tried: Run jQuery selector inside console $('*:...
lukas.pukenis'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
  • 190k
290 votes
33 answers
236k views

How can I prevent the backspace key from navigating back?

On IE I can do this with the (terribly non-standard, but working) jQuery if ($.browser.msie) $(document).keydown(function(e) { if (e.keyCode == 8) window.event.keyCode = 0;}); But is it possible ...
erikkallen's user avatar
  • 34.1k
285 votes
10 answers
272k views

Edit and replay XHR chrome/firefox etc?

I have been looking for a way to alter a XHR request made in my browser and then replay it again. Say I have a complete POST request done in my browser, and the only thing I want to change is a small ...
madsobel's user avatar
  • 3,057
265 votes
1 answer
119k views

What do {curly braces} around javascript variable name mean [duplicate]

EDIT After looking at JSHint I found this 'destructuring expression' is available in ES6 (use esnext option) or Mozilla JS extensions (use moz) and this however after reading it I still don't ...
Georgi Georgiev's user avatar
255 votes
7 answers
395k views

How to verify an XPath expression in Chrome Developers tool or Firefox's Firebug?

How can I verify my XPath? I am using Chrome Developers tool to inspect the elements and form my XPath. I verify it using the Chrome plugin XPath Checker, however it does not always give me the ...
user3448242's user avatar
  • 2,555
249 votes
8 answers
196k views

Hide Up & Down Arrow Buttons (Spinner) in Input Number - Firefox 29

On Firefox 28, I'm using <input type="number"> works great because it brings up the numerical keyboard on input fields which should only contain numbers. In Firefox 29, using number inputs ...
NereuJunior's user avatar
  • 2,847
239 votes
6 answers
228k views

Take a full page screenshot with Firefox on the command-line

I'm running Firefox on a Xvfb in a VPS. What I want to do is to take a full page screenshot of the page. I can redirect Firefox to particular page using firefox http://google.com and take a ...
Omar Abid's user avatar
  • 15.9k
223 votes
13 answers
99k views

Cryptic "Script Error." reported in Javascript in Chrome and Firefox

I have a script that detects Javascript errors on my website and sends them to my backend for reporting. It reports the first error encountered, the supposed line number, and the time. EDIT to ...
Mike Sherov's user avatar
  • 13.4k
213 votes
18 answers
182k views

Firefox redirects to https

I'm using Firefox, and while setting up a server, I have been fiddling around with redirects. Now, Firefox has cached a 301 redirect from http://example.com/ to https://example.com/ and from http://...
talouv's user avatar
  • 2,243
209 votes
8 answers
58k views

How to allow keyboard focus of links in Firefox?

Go to this ultra-simple fiddle in a Webkit browser and click on on of the inputs: http://jsfiddle.net/eK4TT/ <input type="text"> <input type="text"> <input type="text"> <a href="...
Ben's user avatar
  • 11.3k
198 votes
30 answers
229k views

CSS @font-face not working with Firefox, but working with Chrome and IE

The following code works in Google Chrome beta as well as IE 7. However, Firefox seems to have a problem with this. I'm suspecting it to be a problem of how my CSS files are included, cause I know ...
KG -'s user avatar
  • 7,170
195 votes
11 answers
248k views

Preventing an image from being draggable or selectable without using JS

Does anyone know of a way to make an image not draggable and not selectable -- at the same time -- in Firefox, without resorting to Javascript? Seems trivial, but here's the issue: Can be dragged and ...
tmkly3's user avatar
  • 3,239
195 votes
15 answers
363k views

How to get HTML 5 input type="date" working in Firefox and/or IE 10

I find it odd that input type="date" is still not supported in Firefox after all of this time. In fact, I don't think they added in much (if any) of the HTML 5 new types on an input element. Not ...
Solomon Closson's user avatar
194 votes
8 answers
205k views

How to view/delete local storage in Firefox?

In Google Chrome there is an easy way to see what's in local storage as well as modify or delete it after inspecting it. Is there a way to do the same in Firefox?
Ryan's user avatar
  • 9,909
192 votes
10 answers
110k views

Faster way to develop and test print stylesheets (avoid print preview every time)?

This is my process right now: Save changes to print.css Open browser and refresh page. Right-click and choose Print > Print Preview (Firefox, but any browser really) It's step 3 that bugs me and I'm ...
Michael's user avatar
  • 2,548
190 votes
9 answers
152k views

Detect all Firefox versions in JS

How to detect Firefox in JavaScript? I want to detect all versions of Firefox.
Mirgorod's user avatar
  • 32k
186 votes
8 answers
86k views

Breakpoint on property change

Firebug for Firefox has a nice feature, called "Break on property change", where I can mark any property of any object, and it will stop JavaScript execution right before the change. I'm trying to ...
Arsen Zahray's user avatar
  • 24.8k
186 votes
6 answers
68k views

Can I prevent the Firefox developer tools network panel from clearing on page reload?

I would like to observe the contents of a POST request whose successful completion results in a location.reload() - when I try to capture this request in the Network Panel of the Firefox developer ...
jl6's user avatar
  • 6,244
186 votes
9 answers
374k views

Disable cross domain web security in Firefox

In Firefox, how do I do the equivalent of --disable-web-security in Chrome. This has been posted a lot, but never a true answer. Most are links to add-ons (some of which don't work in the latest ...
Oscar Godson's user avatar
  • 32.3k
181 votes
2 answers
88k views

Secret copy to clipboard JavaScript function in Chrome and Firefox?

Update Looks like browsers are starting to support copy natively in JS In the console windows of both Chrome and Firefox on Mac I can execute copy("party in your clipboard!"); and the text gets ...
Mike Grace's user avatar
  • 16.8k
177 votes
21 answers
178k views

How can I get browser to prompt to save password?

Hey, I'm working on a web app that has a login dialog that works like this: User clicks "login" Login form HTML is loaded with AJAX and displayed in DIV on page User enters user/pass in fields and ...
Eric's user avatar
  • 5,184
176 votes
10 answers
451k views

Can I call jQuery's click() to follow an <a> link if I haven't bound an event handler to it with bind or click already?

I have a timer in my JavaScript which needs to emulate clicking a link to go to another page once the time elapses. To do this I'm using jQuery's click() function. I have used $().trigger() and window....
Mnebuerquo's user avatar
  • 5,839
174 votes
9 answers
69k views

Does Firefox support position: relative on table elements?

When I try to use position: relative / position: absolute on a <th> or <td> in Firefox it doesn't seem to work.
Ben Johnson's user avatar
  • 2,632
173 votes
30 answers
299k views

How to remove the arrow from a select element in Firefox

I'm trying to style a select element using CSS3. I'm getting the results I desire in WebKit (Chrome / Safari), but Firefox isn't playing nicely (I'm not even bothering with IE). I'm using the CSS3 ...
RussellUresti's user avatar
171 votes
16 answers
365k views

Firefox 'Cross-Origin Request Blocked' despite headers [closed]

I'm trying to make a simple cross-origin request, and Firefox is consistently blocking it with this error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote ...
Godwhacker's user avatar
  • 3,782
170 votes
6 answers
22k views

How JavaScript closures are garbage collected

I've logged the following Chrome bug, which has led to many serious and non-obvious memory leaks in my code: (These results use Chrome Dev Tools' memory profiler, which runs the GC, and then takes a ...
Paul Draper's user avatar
  • 80.8k
166 votes
4 answers
136k views

How to disable paste protection in Mozilla Firefox Developer Console?

I have noticed that in recent versions of Mozilla Firefox there is a super, super annoying bug that disables pastes into the developer console. This has to be the single worst idea ever. However, I ...
Ms01's user avatar
  • 4,492
164 votes
11 answers
99k views

Animate scrollTop not working in firefox

This function works fine. It scrolls the body to a desired container's offset function scrolear(destino){ var stop = $(destino).offset().top; var delay = 1000; $('body').animate({...
Toni Michel Caubet's user avatar
146 votes
17 answers
129k views

How to turn off caching on Firefox?

During development I have to "clear cache" in Firefox all the time in order to make it use the latest version of JavaScript files. Is there some kind of setting (about:config) to turn off caching ...
Thilo's user avatar
  • 260k
145 votes
6 answers
89k views

How do I write a Firefox Addon? [closed]

What are some resources for getting started writing a Firefox Addon? Is there an API guide somewhere? Is there a getting started tutorial somewhere? Is there a developer discussion board somewhere?
Nick's user avatar
  • 13.3k
142 votes
13 answers
103k views

Amazon S3 CORS (Cross-Origin Resource Sharing) and Firefox cross-domain font loading

There has been a long standing issue with Firefox not loading font from different origin than the current webpage. Usually, the issue arise when the fonts are served on CDNs. Various solutions has ...
VKen's user avatar
  • 4,984
140 votes
29 answers
330k views

Webdriver Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

I have box where I run tests. It seems like Jenkins would ssh in and execute commands described in the specific job that's running. Here I am trying to run my Selenium Webdriver tests, but it tells ...
user1636922's user avatar
  • 2,529
139 votes
20 answers
105k views

Firefox ignores option selected="selected"

If you change a dropdown and refresh the page, Firefox seems to ignore the selected attribute. <option selected="selected" value="Test">Test</option> It will in fact ...
monkey-wrench's user avatar
139 votes
7 answers
81k views

How to get result of console.trace() as string in javascript with chrome or firefox?

console.trace() outputs its result on console. I want to get the results as string and save them to a file. I don't define names for functions and I also can not get their names with callee.caller....
js_'s user avatar
  • 4,701

1
2 3 4 5
779