Firefox « Firefox « Javascript HTML CSS Q&A

Home
Javascript HTML CSS Q&A
1.animation
2.audio
3.background
4.browser
5.button
6.canvas
7.checkbox
8.Cookie
9.Development
10.DIV
11.dom
12.dropdown
13.editor
14.element
15.Event
16.Firefox
17.flash
18.font
19.Form
20.frame
21.hide
22.hyperlink
23.IE
24.iframe
25.image
26.innerHTML
27.json
28.layout
29.Library
30.localStorage
31.Menu
32.mobile
33.onclick
34.popup
35.Render
36.scroll
37.scrollbar
38.svg
39.tab
40.table
41.tag
42.text
43.TextArea
44.TextBox
45.validation
46.video
47.window
48.xml
Javascript HTML CSS Q&A » Firefox » Firefox 

1. webservice.htc, moz-behaviors and Firefox 3    stackoverflow.com

Whilst trying to get our app working in Firefox (I'm a big proponent of X-Browser support but our lead dev is resisting me saying IE is good enough). So I'm doing ...

2. windows.location.href not working on Firefox3    stackoverflow.com

We have a javascript funtion named "move" which does just "windows.location.href = any given anchor".
This function works on IE, Opera and Safari, but somehow is ignored in Firefox. Researching on ...

3. expand collapse html field Firefox    stackoverflow.com

How do I expand/collapse an html field in Firefox? I incorporated a few JavaScript examples from the web, but they only worked in IE. (I'm limited to HTML and JS) Suggestions are ...

4. BASE HREF, javascript, and Internet Explorer vs. Firefox    stackoverflow.com

Queston: IE and Firefox / Safari seem to deal differently with BASE HREF and Javascript window.location type requests. First, is this an accurate description of the problem? What's going on? And what's ...

5. Firefox onkeydown detect pressed key    stackoverflow.com

From an input text I need to call a function to capture the onkeydown event and I need to pass a parameter to that event, for example:

<input type="text" onkeydown="TextOnKeyDown('myPrefix');" />...
Then in ...

6. After visiting links, Firefox selectively skips state change or a:visited styling    stackoverflow.com

After clicking a link with a common href (local page or web-site) and the href is successfully loaded, both FF2 and IE7 will display the link with a:visited styling. For links with href="javascript:anyfunc()", IE7 ...

7. Problems with Cache in Firefox when i upload my app to web server    stackoverflow.com

Can anyone help? I have been designing a site using Javascript but the rest of the html content is static ie. images etc When i load my page in Firefox i have ...

8. Create a favicon for a link that is JavaScript?    stackoverflow.com

I have a link on my site that is strictly JavaScript, that the users can optionally drag to their browser's link bar. Because there is no associated site with a Favicon, ...

9. Getting a Javascript error in IE7 but not in Firefox    stackoverflow.com

Okay, so I'm writing some Javascript for a simple effect: when a drop down gets selected, a series of options will appear, depending on which one is chosen. This works great ...

10. I have a code below - works great in IE and Opera, but does not work at all in Firefox / Netscape. Any ideas?    stackoverflow.com

I have to code below - works great in IE and Opera, but does not work at all in Firefox / Netscape. Any ideas? The problem is that nothing happens when clicking printer ...

11. FireFox handling of disabled fields    stackoverflow.com

I have an HTML form with a select list and a radio button, both of which are initially set with disabled = true. At some point, these elements are enabled ...

12. Custom HTML Attributes,: Firefox vs. IE    stackoverflow.com

What changes do I have to make to the following simple HTML page to get Firefox to read and set a custom attribute as it does in IE?

<!DOCTYPE html PUBLIC "-//W3C//DTD ...

13. Why this javascript is producing different output in FF and IE?    stackoverflow.com

Please see this:
http://jsbin.com/igeqa here, i am simply using

alert ( tableObj.childNodes.length );
and in FF the output is 5 , while in IE it is 2. Please tell me ...

14. innerText gives error in mozilla firefox (count words and character of html)    stackoverflow.com

I want to count number of words & number of characters in html text (TEMP), and while doing that i want to skip HTML tags and html keywords (ex. &nbsp;) suppose i am ...

15. Detecting local file drag'n'drop with HTML/JavaScript    stackoverflow.com

There is a HTML textarea. I'm able to catch that event when a local file is dragged and dropped onto the textarea. But how to obtain the name of the dropped ...

16. HTML: Why doesn't Firefox use wrap="off" when set by JavaScript?    stackoverflow.com

I'm using this:

$('document').ready(function(){
    $('textarea').attr('wrap', 'off');
});
(JQuery) (Firefox 3.5) I'm checking with WebDeveloper that the wrap attribute indeed is set to off in the page when I'm loading it up, but ...

17. How do I get HTML Markup for createRange() in Firefox    stackoverflow.com

I am currently using code similar to this:

try {
 // IE ONLY
 var theElement = "myElementName";
 window.frames[theElement].focus();
 var selection = window.frames[theElement].document.selection.createRange();
 alert ( selection.htmlText );  
} catch(e) {
 var selection ...

18. Is there a way to show html source in the browser after insertion by js?    stackoverflow.com

Is there a way to show html source in the browser after insertion by js via ~.innerHTML = Source; ?

19. Why does one of two identical Javascripts work in Firefox?    stackoverflow.com

I have two image swap functions and one works in Firefox and the other does not. The swap functions are identical and both work fine in IE. Firefox does not even ...

20. Problems with contenteditable in Firefox    stackoverflow.com

I am working on a Javascript WYSIWYG editor in Firefox. I am using a div with the contenteditable attribute set to true in order to accomplish this (I cannot use ...

21. Open a file:// protocol with UNC paths in HTML page    stackoverflow.com

I'm trying to open a file located on a networkshare by giving the anchor tag path = file://///servername/folder/file.docx This works in IE8 and i'm able to open the file in word, however in ...

22. Javascript getElementsByTagName broken firefox?    stackoverflow.com

I'm getting the weirdest issues with Javascript in Firefox today. I'm trying to manipulate some table rows, but .getElementsByTagName("tr"); is pulling back junk.

dynamicTable.tableBody = dynamicTable.getElementsByTagName("tbody")[0];
var tableRows = dynamicTable.tableBody.getElementsByTagName("TR");
var actualTableRows = new Array();
for(var i ...

23. getElementsByTagName gives us the same result for IE and Firefox    stackoverflow.com

We are using the getElementsByTagName function to find out domnodes present in the article. We found that IE and Firefox give different result for broken tag as below. e.g. <a href="http://www.yahoo.com">Bypass HTML tags</ ...

24. Getting around Firefox not passing the file path    stackoverflow.com

I need a means of getting past Firefox's irritating refusal to pass the full path of a file selected using the input file element. This issue has come up in ...

25. JavaScript works under Firefox but does not work under IE    stackoverflow.com

I am having the following HTML file protected through JavaScript. It works fine with Firefox, howover, when it is opened with IE, the JavaScript seems not get invoked. The grading.pdf is directly ...

26. Firefox/XHTML: creating and appending nodes    stackoverflow.com

I'm trying to replace a bunch of innerHTML references in code with DOM-compliant node stuff.

<html>
    <body>hehe</body>
    <script type="text/javascript">
        ...

27. Can we find out if skype is installed or not on a machine thoough web app?    stackoverflow.com

I am writing some web app, from web app I want to know if skype is installed or not on a machine from which web page is called. Is this possible? ...

28. scrollHeight property in FireFox    stackoverflow.com

I'm working on a function to detect whether text inside of a DIV element would overflow. In this regard I have a function working in both Chrome and IE that compares ...

29. JavaScript ImageSlider don't work    stackoverflow.com

Hello :) Why do this JavaScript not work in the FF 3.6 but in the IE7/8 this Script works good? You can see the Problem on this Site: http://www.conventioncologne.de/en/social-program/city-tours/adventure-tours/tutanchamun-late-walk-allein-mit-dem-pharao.html imgslider.js

Array.prototype.search = function(value, ...

30. Error with javascript in firefox    stackoverflow.com

I have a problem with JavaScript running in Firefox. The script below runs without a problem in other browsers except Firefox.

var vars = [], hash;
       ...

31. Internet Explorer JavaScript - newline characters crashing script    stackoverflow.com

I have a onclick event in JavaScript that I have chosen to format as below:

        <a href="" onclick = "
     ...

32. Javascript not working in firefox    stackoverflow.com

I have written a code in javascript. The code works fine in IE, Chrome and safari but firefox gives problems. Nearly every javascript function of mine fails to work in firefox. ...

33. js onPropertyChange alternative or how to make it work in firefox    stackoverflow.com

i would like if anyone can help me with my code, it uses onPropertyChange in and it works in chrome and opera, but in firefox it doesnt work. here is my ...

34. Example Websites that result in substantially different HTML after Javascript processed    stackoverflow.com

After realizing the difference between "raw HTTP GET response" and "live DOM" and how to access both, I have been trying web sites/pages that have a significant difference between the ...

35. How does a browser AUTOMATICALLY convert "Page Source" Javascript to HTML?    stackoverflow.com

Now that I understand how to access both the raw HTML+Javascript (as received by HTTP GET) and the rendered-result of auto-processing of the Javascript upon page load completion, I need ...

36. Browser cache management during local development    stackoverflow.com

While testing in development, how can you disable cache for all your local scripts/styles, and keep the cache working for all the external scripts/styles? Preferably firefox Basically when making changes to css, ...

37. How do I prevent javascript written content from being stored in Firefox's wyciwyg cache?    stackoverflow.com

I am working with user data and cannot allow it to be cached. I am testing with Firefox 4 and a Tomcat 6 server with the cache-control set at no-cache, no-store, ...

38. Firefox changes select radio box with every refresh!    stackoverflow.com

I'm trying to add a select box dynamically to a page with two radio boxes, but the firefox behaviour is strange. Although the first radio button explicitly defined as checked, but ...

39. Save a HTML page in Firefox using JavaScript    stackoverflow.com

I want to save a HTML page using JavaScript in Firefox.
I've tried the code below, but it only works in IE:

function doSaveAs() {
    if (document.execCommand) {
   ...

40. appendChild doesn't seem to be playing nice in FireFox    stackoverflow.com

I'm trying to learn how to create a as a child of another using JavaScript. My example below is functioning fine in Chrome and IE, but in Firefox ...

41. Strange behaviour of Firefox 4.01 with x/html and javascript    stackoverflow.com

I work on web accessibility for blind people interacting with a screen reader Jaws and a vocal synthesizer. I am using x/html with wai-aria and javascript to design accessible web pages of ...

42. initKeyEvent keypress only works in FireFox. need a cross browser solution!    stackoverflow.com

This is my code:

<script>
function f(){
var i=document.getElementById("i");
i.focus();
 var evt = document.createEvent("KeyboardEvent");
    evt.initKeyEvent("keypress", true, true, null, false, false, false, false, 

0, 32);
    i.dispatchEvent(evt);
}
</script>
<body onload="f();">
<input id="i"/>
</body>
Open the script ...

43. RichText :inserthtml not working properly in Firefox    stackoverflow.com

I am trying to insert some text content at the cursor position in my contentEditable iframe for the following content(<span style='fontweight:bold'>ab</span>) ab... Here i place the cursor after ab and if if i ...

44. How to search href and open part of url    stackoverflow.com

Given this example HTML that my GM script runs on, I want to make a code that captures the ID from http://www.mycharactersID.com/ID=234223 After the JavaScript got 234223, and the other ID's on ...

45. Using Jetpack how do you give a page in the data folder access to the require function?    stackoverflow.com

I'm new to using Jetpack. I wanted to open a tab from main.js so I did:

tabs.open(data.url("page.html"));
But how do I give the page that opens access to the require functions I have ...

46. Why is my Javascript function not working in Firefox?    stackoverflow.com

I have two forms (form1, form2) on two frames (left, right). The left frame has the onclick button which gets the data from the right form2 and then saves it into ...

47. insert html into another page using javascript?    stackoverflow.com

Is it possible to insert or embbed html or even js scripts, into another html page using javascript. the purpose is to create a firefox add-on that would display alongside the ...

48. Anchor links stopped working in FireFox 5 when used in Ebay listings    stackoverflow.com

Clicking on them now does nothing. It seems that a part of the URL produced is to blame: http://vi.ebaydesc.com.au/ws/eBayISAPI.dll?ViewItemDescV4&item=123456789&t=123456789&ds=0&js=-1&ssid=15&seller=membername&category=179&bv=mozilla&nv=2&sd=1&caz.html#description Taking away the bv=mozilla makes them work again. Any idea what's going and ...

49. html code in class name    stackoverflow.com

For a long and convoluted reason I need to include a html code spaces in a class name - there is no other option. This class links to some javascript to ...

50. conditional html without javascript: why can't I see my html code    stackoverflow.com

i tried just this:

<table><tr><td>
    <!--[if !IE]>
    non ie browser
   <![endif]--> 
</tr></td></table>
on firefox I can't see what I expect: "non ie browser" why?

51. Javascript function that not working in firefox    stackoverflow.com

I have a function which is use to check Chinese input in a textarea then set the maximum length , it works with IE, Opera, Chrome except Firefox. Is there any way ...

52. Firefox Web Console Disabled?    stackoverflow.com

How come I get this message from Firefox Web Console

The Web Console logging API (console.log, console.info, console.warn, console.error) has been disabled by a script on this page
The same ...

53. location.href not working on FireFox 3.5    coderanch.com

Hi, location.href is not working on FF 3.5,Chrome,safari on line 49 in the included jsp. location.href is working fine with IE 6,7,8.Please guide me. <%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>