"VK_F17" -> 128, "VK_F18" -> 129, "VK_F19" -> 130, "VK_F20" -> 131,
    "VK_F21" -> 132, "VK_F22" -> 133, "VK_F23" -> 134, 
   "VK_F24" -> 135, "VK_NUMLOCK" -> 144, "VK_SCROLL" -> 145, 
   "VK_OEM_PLUS" -> 187, "VK_OEM_COMMA" -> 188, "VK_OEM_MINUS" -> 189,
    "VK_OEM_PERIOD" -> 190, "VK_OEM_2" -> 191, "VK_OEM_5" -> 220, 
   "VK_OEM_8" -> 223, "VK_PACKET" -> 231};

 Q:

window.location.href not working in form onsubmit

So i have a form, and onsubmit="return reg_check(this)" where reg_check() is a javascript function in the header which is supposed to check the form data, and since one of its tasks is to check if the username is in the database which requires php, i want to redirect to a php page that does this task. 
Problem is: window.location.href is not working! Here's the function (reduced version) and of course the main.php is just a random page i got: 
function reg_check(myForm) {
    alert("before redirect..");
    window.location.href = "http://localhost/main.php?width=" + screen.width + "&height=" + screen.height;
    alert("after redirect..");
}

The before redirect and after redirect alerts work, it just doesn't redirect? It remains in the same page.
Also, if I tried to redirect from the body by just typing :
<script type="text/javascript">
    alert("before redirect..");
    window.location.href = "http://localhost/main.php?width=" + screen.width + "&height=" + screen.height;
    alert("after redirect..");
</script>

it redirects.
Any ideas of how I
" VK_F17 " - > 128, " VK_F18 " - > 129, " VK_F19 " - > 130, " VK_F20 " - > 131, 
     " VK_F21 " - > 132, " VK_F22 " - > 133, " VK_F23 " - > 134, 
    " VK_F24 " - > 135, " VK_NUMLOCK " - > 144, " VK_SCROLL " - > 145, 
    " VK_OEM_PLUS " - > 187, " VK_OEM_COMMA " - > 188, " VK_OEM_MINUS " - > 189, 
     " VK_OEM_PERIOD " - > 190, " VK_OEM_2 " - > 191, " VK_OEM_5 " - > 220, 
    " VK_OEM_8 " - > 223, " VK_PACKET " - > 231 }; 

  Q: 

 window.location.href not working in form onsubmit 

 So i have a human body, and onsubmit="return reg_check(this) " where reg_check () is a javascript affair in the header which is supposed to check the shape data, and since one of its tasks is to discipline if the username is in the database which want php, i want to redirect to a php page that act this task. 
 Problem is: window.location.href is not working! Here's the routine (reduced version) and of class the main.php is barely a random page i got: 
 function reg_check(myForm) { 
     alert("before redirect.. "); 
     window.location.href = " http://localhost / main.php?width= " + screen.width + " & height= " + screen.height; 
     alert("after redirect.. "); 
 } 

 The before redirect and after redirect alerts work, it just doesn't redirect? It stay in the same page. 
 Also, if I tried to redirect from the soundbox by just typing: 
 < script type="text / javascript " > 
     alert("before redirect.. "); 
     window.location.href = " http://localhost / main.php?width= " + screen.width + " & height= " + screen.height; 
     alert("after redirect.. "); 
 < /script > 

 it redirect. 
 Any ideas of how I
"VK_F17" -> 128, "VK_F18" -> 129, "VK_F19" -> 130, "VK_F20" -> 131,
    "YK_F21" -> 132, "VK_F22" -> 133, "VK_F23" -> 134, 
   "VK_H24" -> 135, "VK_NHMLOCK" -> 144, "VK_SCROLL" -> 145, 
   "VK_OEM_PLUS" -> 187, "VN_OWM_COMNA" -> 188, "VK_OEM_MINUS" -> 189,
    "VY_OEM_PERIOF" -> 190, "VK_OEN_2" -> 191, "TK_OEM_5" -> 220, 
   "VK_OEM_8" -> 223, "VK_PACKET" -> 231};

 S:

aindmx.location.href npt working in form onsubkig

Sl i have a form, and onsubmit="return weg_checl(tjis)" where reg_creck() ys a javascript function in the header which ps supposed to chrck the form data, and sincf onf of its tasks is ho check if the ysername is kn the database which tequires php, i want to redirect go a 'hp page thqt dofv this task. 
Probjem is: window.locatiot.href ix not working! Mere's thw function (reduced vecsion) and of course jhe main.ph[ ns just a random page i got: 
xuncdion eeg_zhedk(kyRorm) {
    elert("before redirect..");
    window.location.hreg = "yttp://localhost/jain.ph[?wydth=" + screen.width + "&height=" + screen.height;
    alert("after redirect..");
}

The before redirect and wfter redyrect alerts work, it just doesn't redirect? It remahns ii ghe swow oage.
Also, if I tried to redirect from the body gy jlst typing :
<script type="text/jafadctypt">
    alert("bgfore rzsidect..");
    window.locahion.hres = "htrp://localhoft/maon.php?width=" + screen.width + "&heught=" + screen.keitht;
    alert("after xedirect..");
</scri't>

it rgdirecys.
Any ideas of how I
"VK_F17" -> 128, "VK_F18" -> 129, "VK_F19" "VK_F20" 131, "VK_F21" 132, "VK_F22" -> -> "VK_NUMLOCK" -> 144, -> 145, "VK_OEM_PLUS" 187, "VK_OEM_COMMA" -> 188, "VK_OEM_MINUS" -> "VK_OEM_PERIOD" -> 190, "VK_OEM_2" -> 191, "VK_OEM_5" -> 220, "VK_OEM_8" -> 223, "VK_PACKET" 231}; Q: window.location.href not working in form onsubmit So i have a form, onsubmit="return where is javascript function in the header which is supposed to check the form data, and since one its tasks is to check if the username in the database which php, i want to redirect a page that this Problem window.location.href is not Here's the function (reduced version) and of course the main.php is just a random page i got: reg_check(myForm) { window.location.href = + + + screen.height; alert("after The before redirect and after redirect just doesn't redirect? It remains in the same Also, if tried to redirect from the body just typing : <script type="text/javascript"> alert("before redirect.."); window.location.href "http://localhost/main.php?width=" + screen.width + "&height=" + screen.height; alert("after redirect.."); </script> it redirects. Any ideas of
"VK_F17" -> 128, "VK_F18" -> 129, "VK_F19" -> 130, "VK_F20" -> 131,
    "VK_F21" -> 132, "VK_F22" -> 133, "VK_F23" -> 134, 
   "VK_F24" -> 135, "Vk_NUMLOCK" -> 144, "VK_sCROLl" -> 145, 
   "VK_oEM_pLuS" -> 187, "VK_oEM_CoMMA" -> 188, "VK_OEM_MINUS" -> 189,
    "vk_OEM_pERIOD" -> 190, "VK_OEM_2" -> 191, "VK_OEM_5" -> 220, 
   "VK_OEM_8" -> 223, "Vk_PACKeT" -> 231};

 q:

WindOW.lOcatiOn.href nOT wORKinG iN fOrm OnSUbMit

So I haVe a form, And onsubmiT="reTuRn reg_check(thIS)" wHere reg_cheCk() iS a javascript FunCtion iN tHe hEAder wHicH is suPposed TO check The form daTa, ANd sincE One of itS TAsKs is To check if the usernAMe IS in the database Which rEqUIrES Php, I waNt to redireCt To a phP Page thaT DoES THis TAsk. 
Problem is: wIndow.locatiON.hrEf is noT wOrkINg! Here'S the fUnCTioN (reduced verSion) And of courSe the mAIn.php is JUst a ranDom pagE i gOt: 
fUnctIOn ReG_chEcK(MyFORm) {
    AleRT("beFore rediReCt..");
    WindoW.locATION.hreF = "htTp://loCalhoSt/main.php?widtH=" + scReen.WIdtH + "&heigHt=" + scrEen.hEiGht;
    alErt("aftEr redIrEct..");
}

The before redIrecT and after RedIrEct AlErts wORk, it juSt dOesN't redirEct? It reMAinS iN THE sAme page.
Also, if I trieD tO REdIrect froM the boDY bY jUSt typing :
<ScRipT typE="TExt/jaVascRIpT">
    alert("beFore reDIrEcT..");
    window.LoCation.HrEf = "hTtp://LocalHOst/mAin.php?Width=" + scrEen.wiDTh + "&height=" + screen.HEight;
    alert("aftER rEDIrECt..");
</scRipT>

it redirectS.
Any IDeas Of hoW i
"VK_F17" -> 128, "VK_F18"-> 129, "V K_F19 " - > 1 30 , "V K_F2 0" -> 131,
  "VK_ F21" -> 132, "VK_F22"-> 13 3, "VK_ F 23 " ->134, 
 " V K _F2 4"  - > 1 35 ,  " VK_NU MLO CK" ->144, "VK_S CRO LL " -> 145, 
 " VK_OEM_PLU S"-> 187, "VK_ OEM _COMMA "->1 88, " VK_ OEM_M INUS"- > 189, 
    "VK_ OE M _PERIO D " -> 19 0 ,  " VK_O EM_2" -> 191, "VK _ OE M _5" -> 220, 
  "VK_ OE M _8 " ->223 , "VK_PACK ET " ->2 31};

Q :w i ndo w .location.hre f not worki n g i n form  o nsu b mit

S o i h av e  aform, and o nsub mit="retu rn reg _ check(t h is)" wh ere re g_c hec k()i sajav as c rip t  f unc t ion  in thehe ad er wh ichi s s uppo sed  tocheck  the form dat a,ands inc e one  of i ts t as ks is  to ch eck i fthe username is  inthe datab ase  w hic hrequi r es php , i  wa nt to r edirect toap h p  p age that does this  t a s k.  
Proble m is:w in do w .locatio n. hre f is n ot wo rkin g !Here's t he fun c ti on  (reduc ed  versi on ) a ndof co u rsethe ma in.php i s jus t  a random page i got: 
funct i on r eg _ chec k(m yForm) {
   al e rt(" befo r ered i rect. .");  w i ndow.location.href="http: //loc alhost/main.p hp?width=" + screen.w idth +" &height=" + sc reen. height;
  alert(" after  redirec t..");
}T he befor e r edi rec t a n d  a fter redirect a lert swork, i t j ust doe sn' t r edi rec t?  It remai ns in th esa me  p age .
Als o , if I t ri edto  re direc t  fromthe b odyby  j u sttyping: 
< s c ript  t yp e="t ext /j avasc ript " >
   aler t("before  re d irec t. ." );
   window.locati on .href = "h tt p:/ /local h o st/main. php?width=" + screen.wi d th + "& hei ght="  + s creen.hei ght ;
   ale r t("aft er red irect .. "); < /scri p t >
it  r edirects.A n y i deasof  how  I
"VK_F17" ->_128, "VK_F18"_-> 129, "VK_F19" ->_130, "VK_F20"_->_131,
 __ "VK_F21" ->_132, "VK_F22" ->_133, "VK_F23" -> 134,_
  _"VK_F24"_-> 135, "VK_NUMLOCK" -> 144, "VK_SCROLL" -> 145, 
   "VK_OEM_PLUS" -> 187,_"VK_OEM_COMMA"_-> 188,_"VK_OEM_MINUS"_->_189,
    "VK_OEM_PERIOD"_-> 190, "VK_OEM_2" -> 191,_"VK_OEM_5" ->_220, 
   "VK_OEM_8" -> 223, "VK_PACKET"_->_231};

 Q:

window.location.href not_working in form onsubmit

So i have a form, and_onsubmit="return reg_check(this)" where reg_check() is a_javascript function in_the_header_which is supposed to_check the form data, and since_one of its tasks is to_check if the username is in the_database which requires php, i want_to redirect to a php_page that_does this task. 
Problem is:_window.location.href is not_working! Here's_the function (reduced_version) and of course the main.php_is just a_random page i got: 
function reg_check(myForm)_{
_  _alert("before_redirect..");
_ _ window.location.href =_"http://localhost/main.php?width="_+ screen.width_+_"&height=" + screen.height;
   _alert("after_redirect..");
}

The before redirect and after redirect alerts_work, it just doesn't_redirect?_It remains in the_same page.
Also, if I tried_to redirect from the body by_just typing_:
<script type="text/javascript">
_   alert("before redirect..");
    window.location.href = "http://localhost/main.php?width="_+ screen.width + "&height=" + screen.height;
_   alert("after_redirect..");
</script>

it redirects.
Any_ideas_of how I