Dear All friends,

I am developing one application which is running on ie all versions.
but when I run same application on firefox/mozilla it shows error.

html code:

<iframe id='mFrame' name='mFrame' class='mFrameCSS' src="" frameborder=0 vspace=0 hspace=0 marginwidth=0 marginheight=0 width=100% scrolling=no></iframe>

JavaScript code :
<script language=javascript>
var lMWFrame=document.getElementById('mframe');
alert('lMWFrame :--->'+lMWFrame); //shows null here

When run this script on firefox its shows null. And when run on ie it shows "[Object] as a output."

If any one has any idea, please tell me.

Thanks & Regards!


var lMWFrame=document.getElementById('mframe');

Try getting the element by its id 'mFrame', not 'mframe'.