I'm having some trouble escaping an apostrophe in the following javascript code that I am pushing through my webbrowser.
Here is the code that I am using:
tempString1 = "building\'s";
wvMain.EvalScript("frames['main'].document.getElementById('txtInstructions').value='" + tempString1 + "';");
I get this error:
Uncaught SyntaxError: Unexpected indentifier.
I have tried doing:
tempString1 = "building" + Convert.ToChar(34) + "s"; //I get the same error
And this:
' gets copied directly into the textfield itself.
does anyone have any advice?