| View previous topic :: View next topic |
| Author |
Message |
rajkumar001
Joined: 30 May 2008 Posts: 1
|
Posted: Fri May 30, 2008 10:46 am Post subject: problem with location.href |
|
|
function callme(form)
{
if(document.forms[0].elements[1].value=="ajax" && document.forms[0].elements[2].value=="ajax")
{
window.location.href = "home.jsp"
//document.location.href="http://localhos:8080/jsp-examples/tech_fb/retrieve1.jsp";
}
else
{
alert("--------");
}
}
I need the above code to check username and password. If they are correct then it goes to home.jsp otherwise it shows an alert box. Here the location.href wont work. Why it happens so? I have also tried window.open..it works. but i need a page to be open by overwrite the existing window and not a new one. How can i do this . Any help regard this would be appreciated... |
|
| Back to top |
|
 |
|
|
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 563 Location: Cebu City Philippines
|
Posted: Fri May 30, 2008 11:42 am Post subject: Re: problem with location.href |
|
|
Could you show us your markups (HTML)  |
|
| Back to top |
|
 |
|