Backslash in JavaScript
        Posted  
        
            by erasmus
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by erasmus
        
        
        
        Published on 2010-06-09T11:59:06Z
        Indexed on 
            2010/06/09
            12:02 UTC
        
        
        Read the original article
        Hit count: 284
        
JavaScript
In my javascript code I have
onchange="document.getElementById('user_name').value = document.getElementById('theDomain').value + '\\' + document.getElementById('fake_user_name').value"
here backslash doesn't work. What is the problem? How should I write it?
© Stack Overflow or respective owner