I'm trying to pass slash keyword "\" by using javascript. But not taking the slash in text field.
Example:
document.getElementById("demo1").value = "welcome\"<!DOCTYPE html>
<html>
<body>
  <h2>JavaScript String Properties</h2>
  <p>The length property returns the length of a string:</p>
  Username : <input id="demo1" />
</body>
</html>Output:
JavaScript String Properties
The length property returns the length of a string:
Username : [It's empty field]
How to pass the "welcome\".
Could please help me how I will get below output.
Username : welcome\
 
     
     
    