html - unterminated string literal when I click on anchor tag -
when click on tag getting below error
unterminated string literal
<a onclick="ga('send', 'event', 'cloudstore', 'click', 'cloud here - banner’);" href="about.php" class="red-text block">read more</a>
in last parameter string, have backtick
instead of single quote
'cloud here - banner’ <- see string ending literal
just use 'cloud here - banner'
function ga() { }
<a onclick="ga('send', 'event', 'cloudstore', 'click', 'cloud here - banner');" href="#" class="red-text block">read more</a>
Comments
Post a Comment