Click to See Complete Forum and Search --> : window.location.href isnt working!


pelegk1
10-22-2003, 10:54 AM
why when i use
window.location.href="1.asp" it isnt working
but when i use
window.open("1.asp")
it is working?

fredmv
10-22-2003, 11:01 AM
Do you have an example page where we can see this in action?

pelegk1
10-22-2003, 11:04 AM
<SCRIPT LANGUAGE="JavaScript">
function GetData(){
Emergency="false";
InOut="0";

if (Mahoz.value!="") {
region=MahozVal.value;
str="page1.asp?region="+region+"&Emergency="+Emergency+"&InOut="+InOut;
//str="page1.asp";
//window.open(str);
window.location.href=str;
//alert(str);
} else {
window.location.href="page1.asp?region=" +" " +"&Emergency="+Emergency+"&InOut="+InOut;
}
}
</SCRIPT>

pelegk1
10-23-2003, 02:22 AM
window.location="page2.asp"
and still no effect!