Milind: Problem in Netscape 4.7 Macintosh

Beitrag lesen

Following is my script. This script works in windows platforms in all vwersions of netscape and IE. But creates problem in Mac OS 8.6.

In the HTML I have layer named 'formLayer' in which entire form is placed.

var msgStr = "Achtung !\n\n";
var boolCorrect = true;
var theForm = (document.layers)?document.formLayer.document.myform:document.myform;

if(theForm.name.value=="")
     {
         msgStr += "Bitte geben Sie einen Namen an.\n";
         boolCorrect = false;
     }

if(boolCorrect)
    theForm.submit();
 else
    alert(msgStr);

In this script the alert messages are shown as desired. But the form is not submitted.
Does any one know ??
Any help is highly appreciated.

Thanks in advance.

Warm Regards,
Milind Naik