In JavaScript, the slash '\' character is known as an escape character. Alone it means nothing. But it's very useful when you combine it with another character. For example, consider the following string:
Code:
var mystring = "I like to use "quotes" in my strings.";
It looks innocent enough, but it throws an error when you try to use it. The reason is that JavaScript sees the second " quote as the end of the string, and the rest of the text as invalid code.
The problem is easily fixed by escaping the quote:
Code:
var mystring = "I like to use \"quotes\" in my strings.";
Now the string works, and appears as expected.
To show a literal backslash (as in your problem), you'll need to do it twice. So for your string:
Code:
document.updateAccessGroup.dataLocUpd.value='\\\\crwd0004\\grpdata'
Bookmarks