Hi I have a code for javascript 'visual mode'.
This is part of the code:

PHP Code:
document.onmousedown=doMDown

function doMDown()
{
var 
el
el
=event.srcElement
 
var button=event.button
if(el.type=='text'||el.type=='textarea')
{
 
TXT=el;FID=''
 
if(button>1&&POPWIN==1){formatDialog()}
}

It works fine on IE, but document.onmousedown seems doesn't work on firefox. Does anyone know how can it work on firefox?