# Possible Javascript issue with Firefox?

**URL:** <https://forum.kirupa.com/t/possible-javascript-issue-with-firefox/255739>\
**Category:** web dev\
**Created:** [March 26, 2008, 2:11pm UTC](https://forum.kirupa.com/t/possible-javascript-issue-with-firefox/255739 "2008-03-26T14:11:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grumdikanikus](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@grumdikanikus](https://forum.kirupa.com/u/grumdikanikus)\
**Post date:** [March 26, 2008, 2:11pm UTC](https://forum.kirupa.com/t/possible-javascript-issue-with-firefox/255739/1 "2008-03-26T14:11:08Z")

</div>

Okay, I figured out my issue. A friend help with with my bad javascript and I fixed my flash wierdness too.

Firefox apparently handles iframes a little differently than IE does. I moved the location of my flash file and html file to the same directory with the parent page and everything worked great.

* * *

Okay, I am new Javascript and since this doesn’t seem to work in Firefox but works great in IE, I wanted to get a second opinion.

I have this code, which I will post below. There is a dropdown menu that will have several users listed and once you select one and click the button. There is some javascript that loads a supporting html file about that user into an IFRAME. The supporting html file has an embedded flash file in it. It doesn’t like it using a standard text html file. I need help getting it to work in Firefox.

Here’s the code

Thanks,  
Grum

```auto

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<FORM class="formstyle" align="left">
<SELECT NAME="Reinforce_Me" SIZE="1">
<OPTION SELECTED VALUE="">Select Associate Name
<OPTION VALUE="flash\kr.html">Keith Roddam</OPTION>
<OPTION VALUE="#">My second link</OPTION>
</SELECT>
<INPUT TYPE="button" VALUE="Go"
onClick="if (form.Reinforce_Me.selectedIndex != 0)
document.all.Rplus.src = form.Reinforce_Me.options[form.Reinforce_Me.selectedIndex].value;
else
alert('Please choose an Associate.')">
</FORM>
<p></p>
<HR width="97%" align="left">
<p></p><iframe id="Rplus" align="left" frameborder="1" target="_parent" name="Rplus" height="460" width="460" style="margin-left:3px;"></iframe>
</body>
</html>

```
