ars
1
Hi,
globals.html = "<html>"
globals.html += "<a href='javascript:methodName(value)'>Hi..........</a>";
globals.html += "</html>";
In the above code, when i am passing a numerical value to the method methodName, It is working. But if i will pass a String it is not working.
Can any one please help on this.
Put the string value between quotes like this:
globals.html = "<html>"
globals.html += "<a href='javascript:methodName(\'value\')'>Hi..........</a>";
globals.html += "</html>";
ars
3
ROCLASI:
Put the string value between quotes like this:
globals.html = "<html>"
globals.html += “<a href=‘javascript:methodName('value')’>Hi…”;
globals.html += “”;
Hi Robert,
Still, it is not Working.
Showing the error
Couldnot eval the string ‘methodName(value)’