Tag: firefox

Can't set element.style.float in Firefox?

I’ve posted the following javascript code as a fiddle. It’s pretty basic, and works fine in IE11 and in Chrome, but FireFox quietly throws away my float settings. When I inspect the elements with FireBug, neither of them have float set in their style. Why? Surfing the web, I’ve gotten the vague impression that it […]

Does keypress() only fire when a textfield is focused in Firefox?

jQuery(document).ready(function ($) { $(‘body’).keypress(function (e) { alert(e.which); }); }); This will pop up an alert when a key is pressed in Chrome but not in Firefox. However, if I create a text field and focus it, then press a key, an alert will pop up in Firefox. (Even though $(‘body’) is still the jQuery object.) […]

better quality thumbnails from larger image files

I’m showing images from other websites as thumbnails. To do this I display them in a smaller img tag so the browser does the size decrease. The problem is that the quality of these images (which I have no control of) is diminished. Also they look much better in FF and Safari than in IE. […]

How to get the url of currently opened tabs in all browsers with php or javascript?

If anyone can guide a bit or have little knowledge how to make it possible, please let me know. Thanks

I added bad js to my website. Now it won't load completely and I can't get to the admin to remove it

is there a firefox plugin that will let me ignore a certain snippet of code? If I turn off js, the page loads but I can’t get to the admin because that requires js. I would like to leave js on, but have my browser simply ignore a couple lines of code. Possible? Thanks!

Javascript returning month as 9 where it is 10

I’m building today’s date using a onclick event in JavaScript. When i set the .value property with: var now = new Date; …Value = now.getMonth() + “/” + now.getDate() + “/” + now.getYear(); this produces: 9/9/2009 I am expecting: 10/9/2009 This happens in both IE and Firefox. The system time on my computer is correct. […]

Why JavaScript's Date object is invalid in Firefox?

I have date in a div which looks like “30-Apr-2013” and I want to convert it to: 30 Tuesday APR | 2013 I have write some code to make this conversion for me. Its working fine in Chrome but some how its not working in Firefox and in firebug console it says: Date {Invalid Date} […]

getElementsByClassName is not a function in Firefox

This question already has an answer here: What do querySelectorAll, getElementsByClassName and other getElementsBy* methods return? 7 answers

Firefox window.opener issue

“window.opener” works fine in both IE and Firefox as long as ‘Open in New Tab’ is used from the right-click menu; Error console says “window.opener” is null. Is there any other way the opener can be accessed? Edit: Error console says “window.opener” is null only when “Open in New Tab” is clicked. For all other […]

Detect whether the native PDF viewer in Firefox (introduced in firefox 19) is the primary PDF viewer

Firefox has introduced a native PDF viewer in Firefox 19, which works quite well. However on my website, I want to detect whether the PDF is opened in the native PDF viewer of Adobe Acrobat Plugin. On the basis of that I want to tell the users to choose a different viewer (Adobe Acrobat).