javascript - JS If statement not working on android 4.4.2 or iphone -
javascript - JS If statement not working on android 4.4.2 or iphone -
on android or on iphone else when type glass on computer works fine
<script type="text/javascript"> var x = prompt("wholesale users  come in in password or   nail  come in consumer  info "," "); if(x == "glass"){     window.alert("sometext");     } else {     window.alert("else"); }  </script>          if([x] == "glass"){    
should be
if(x == "glass"){    when [x], creating array. since using == check true. === not true. 
and comments there %20 aka whitespace
change prompt not have whitespace in it
r  info "," ");    to
r  info ","");        javascript android iphone 
 
  
Comments
Post a Comment