J
Jim
Seems this should be simple but I can't find how to do it in any
of my JavaScript books.
I want to jump to a new page in a function, thusly,
function jumper( where )
{
if ( where == "here" )
{
'jump' "/myWebApp/here.jsp";
}
else if ( where == "there" )
{
'jump' "myWegApp/there.jsp";
{
else
{
'jump' "myWebApp/nowhere.jsp";
}
}
The best I've been able to do is reset the action attribute in a form
object and submit it:
function jumper( form, where )
{
form.action = where;
form.submit();
}
Seems like it should be easier. Any suggestions?
Thanks in advance.
jim cant
of my JavaScript books.
I want to jump to a new page in a function, thusly,
function jumper( where )
{
if ( where == "here" )
{
'jump' "/myWebApp/here.jsp";
}
else if ( where == "there" )
{
'jump' "myWegApp/there.jsp";
{
else
{
'jump' "myWebApp/nowhere.jsp";
}
}
The best I've been able to do is reset the action attribute in a form
object and submit it:
function jumper( form, where )
{
form.action = where;
form.submit();
}
Seems like it should be easier. Any suggestions?
Thanks in advance.
jim cant