Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to take yes or no in js

ans = confirm('continue ?');
//returns a boolean response
if (ans){
	//condition returns true...
}
else(){
	//condition returns false...
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js
ADD COMMENT
Topic
Name
8+1 =