I have the following script in the head of my document
Expand|Select|Wrap|Line Numbers
- var state = false; function edit() { document.getElementById('editor_area').style.display = state ? 'none' : 'inline'; document.getElementById('display_area').style.display = state ? 'inline' : 'none'; state = !state; if (!state) document.getElementById('jump').focus(); }
it works in IE, but in FF it fails, and the error console displays "edit not defined"
can anyone explain why this is?
Thanks in advance