Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Programming Languages
Javascript
Variable won't evaluate correctly in Javascript
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="FResher, post: 5172745, member: 92245"] if ( new_line ) return true because the var exists. it's a weak checking ,faulty condition. if ( ....indexof || ...indexof ) return true because the two strings are not found ( or just one of both ) . remenber indexOf('scheme') return -1 when the string 'scheme' is not found ... this test is useless to use and check the prompt() dialog , read about : [CODE=javascript]https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt[/CODE] [/QUOTE]
Verification
Post reply
Forums
Programming Languages
Javascript
Variable won't evaluate correctly in Javascript
Top