1. HTML tags if use $(id) or getElementById these two methods, the values for the label plus id attribute, IE, FF is compatible. If $(mobile) : if there is no id attribute to fill write mobile input will quote this variable in the FF undefined;
2. Pick up form form a tag object, if to IE, FF compatible to the formMain item instead of the document. The formName. Items.
as form1. WebUrl instead of the document. Form1. WebUrl.
if the form as an argument to a function, also want to add "document.", such as search (formMain) to search (document. FormMain)
3. Take the HTML custom attributes with obj. AttributeName obj instead. The getAttribute (IE, FF "attributeName") compatible; The custom properties can still according to the
obj. AttributeName.
such as: <Input type="text" name="memberCn checkValue"="http://www.script-home.com//article/notNull;eLength:25" >CheckValue attributes for custom attributes of the label, use obj. GetAttribute (" checkValue "), IE, FF is compatible, other properties such as the type attribute is still can use the obj. Take
4. Type the eval function, used in FF and IE, with "+" in FF connection into an executable statement as the parameters of the eval, does not in IE can perform. Meet to use eval, try to find other way instead.
such as: eval (" msg_ "+ textbox. Name +". The className='wrong' ");
"msg_" + textbox. Name + "className='wrong'" this sentence as the parameter in the eval can perform, IE in FF execution times "msg_" + textbox. Get space of undefined name connection, can't perform, be amended as:
the document. The getElementById (" msg_ "+ textbox. Name). The className='wrong';
5. The style of the display properties of the block, if there are any abnormalities can become empty in FF; Such as item. Style. The display="block" can be changed to the item. Style. The display=""
such as $(" divType4"). Style. The display="block";
$(" divType4 "). Style. The display="";
6. Add one more: label in FF as if is not the same as the IE: for example the following code:
<Td colspan="3" class="line_l >" Adult <Label>
<The input name="amount" type="text" value="http://www.script-home.com//article/${amount}" size="6" maxlength="10" eleName="[adult reservation number]" checkValue="http://www.script-home.com//article/notNull;eLength:10;isLong"/>
people           Children
<Input name="kidAmount" type="text" value="http://www.script-home.com//article/${kidAmount}" size="6" maxlength="10" eleName="reservation number [children]" checkValue="http://www.script-home.com//article/notNull;eLength:10;isLong"/>
people <Span class="line_red >" * </span> </label>
</td>
wrote in FF input to adult children when the cursor is always run, IE not, and such written not:
<Td width="25%" >Adult <Label>
<The input name="amount" type="text" value="http://www.script-home.com//article/${amount}" size="6" maxlength="10" eleName="[adult reservation number]" checkValue="http://www.script-home.com//article/notNull;eLength:10;isLong"/>People </label> </td>
<Td width="75%" >Children <Label> <Input name="kidAmount" type="text" value="http://www.script-home.com//article/${kidAmount}" size="6" maxlength="10" eleName="reservation number [children]" checkValue="http://www.script-home.com//article/notNull;eLength:10;isLong"/>People </label> </td>
pay attention to the position of the label, one is outside of the two input, one is the outside of an input,
can't label tags in FF contains two input tag???????
there is one place: the code is as follows:
<Td> <Label>
<Select the name="provinceId" id="provinceId">

you might be interested in the article:

  • Js event event in IE, FF compatibility problems
  • javascript compatibility in event listeners summary
  • javascript browser compatibility issues and solutions
  • web pages and browser compatibility problem summary (draft1)
  • Js FF and IE compatibility problem summary
  • in Internet explorer and Firefox javascript application compatibility to explore
  • compatibility analysis of Internet explorer and Firefox
  • organize some javascript Internet explorer and Firefox compatibility considerations
  • Internet explorer and Firefox browser compatibility event event summary
  • Internet explorer and Mozilla compatibility summary event


This concludes the body part