177
rated 0 times
[
179]
[
2]
/ answers: 1 / hits: 6979
/ 10 Years ago, fri, december 26, 2014, 12:00:00
while passing string parameters from java to javascript function it breaks if parameters contains space in it.
String str = This is test;
sb.append(<a href=javascript:testFunction(+str+;>test</a>);
then while clicking on this hyper link it gives below error as:
SyntaxError: unterminated string literal
More From » string