I am very new with javascript.. and there is alot i am not sure of
Expand|Select|Wrap|Line Numbers
- function getMessage(rec,desc,url)
- {
- var ans; ans=window.confirm('The AssetType ' + rec + ' ['+ desc + '] will be deleted. Would you like to continue?'); //alert (ans);
- if (ans==true) {
- top.location.href= url + "?Code=" + rec + "&DeleteType=AssetType";
- }
- else { }
- }
e.g rec = 'abc - sdf'
rec = 'sdf(yes)'
the character "-" and "(" is has cause unterminated string constant error.
Anyone can help me with this problem?? is there a character code to replace those characters??
Thank you in advance