Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pass string with backslash javascript

//very simple - just add double backslashes 
function handleClick() {
  var audio = new Audio('sounds	om-1.mp3')//here we can grab a source without
  audio.play();							    //error
}

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #string #backslash #javascript
ADD COMMENT
Topic
Name
4+9 =