I try follows: function goURL(tmp){ document.forms[0].submit(); } I debug the Javascript,when running the statement document.forms[0].submit();
Javascript raise a error: Microsoft JScript running error:object can't support this attribute or method Why? On 2/21/06, Dave Newton <[EMAIL PROTECTED]> wrote: > > red phoenix wrote: > > I tried follows: > > function goURL(tmp){ > > document.forms[0].action=eval("/Log/log.do?action=First"); > > document.forms[0].submit(); > > } > > > > and > > function goURL(tmp){ > > document.forms[0].action=eval("/log.do?action=First"); > > document.forms[0].submit(); > > } > > > > My page also can't redirect! > > > Why are you eval-ing a string? Since "/log.do?action=First" is not a > valid JavaScript statement, this will fail. > > Pay attention to JavaScript errors. > > Dave > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >