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

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -