Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

if else alert js

alert((function(){ 
    if (cond) { return "Text when true";}
    else {return "Text when false");})());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #alert #js
ADD COMMENT
Topic
Name
1+7 =