I've got so js skills but would like to use an if statement to determine whether a second textarea exists, if not it must stop, to avoid an error:
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'body');
oFCKeditor.Width = '80%';
oFCKeditor.Height = '400';
oFCKeditor.ReplaceTextarea() ;
var oFCKeditor = new FCKeditor( 'notes');
oFCKeditor.Width = '60%';
oFCKeditor.Height = '400';
if (oFCKeditor == notes)
{return (true);}
else
{return (false);
}
oFCKeditor.ReplaceTextarea();
}
Would any kind soul out there be able to help me?
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'body');
oFCKeditor.Width = '80%';
oFCKeditor.Height = '400';
oFCKeditor.ReplaceTextarea() ;
var oFCKeditor = new FCKeditor( 'notes');
oFCKeditor.Width = '60%';
oFCKeditor.Height = '400';
if (oFCKeditor == notes)
{return (true);}
else
{return (false);
}
oFCKeditor.ReplaceTextarea();
}
Would any kind soul out there be able to help me?