Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pass text and variable in alert javascript

var name = "John Doe";

function myFunction() {
  alert('Hello ' + name);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #text #variable #alert #javascript
ADD COMMENT
Topic
Name
5+1 =