Chrome浏览器开发人员工具控制台中出现意外的令牌ILLEGAL错误 [英] Unexpected token ILLEGAL error in Chrome browser developer tools console
问题描述
嗨......
我正在使用这个特殊的图像,当我点击这个图像时,我正在调用javascript函数,但是在Chrome开发人员工具控制台中它显示错误作为意外的令牌ILLEGAL然后当我点击图像时没有任何反应....我如何解决这个问题.. PLZ帮助!!我发送了显示错误的aspx页面代码,代码如下所示:
Hi ....
I am using this particular images and when i click on this images i am calling javascript functions but in chrome developer tool console it shows error as Unexpected token ILLEGAL and then nothing happens when i click on the images .... how do i solve this issue.. plz help!! I have sent the aspx page code for which it displays error and code is as shown below:
<img alt="selectImage" title="Manage Chart" id="Img4" runat="server" src="Images/chart.png" önclick="OpenChartSettings('1','chartbox4',null)" class="MngImageStyle" style="padding-left: 5px;" />
<img alt="selectImage" title="View Report" id="Img14" runat="server" src="Images/viewreport.png"
önclick="javascript:window.location.href='PreviewGroupReport.aspx?DashboardId='+DashboardId+'&ChartPosition=4'" class="ViewImageStyle" />
<img alt="selectImagen" title="Manage Chartss" id="Img22" runat="server" src="Images/ico_edit.gif"
önclick="javascript:window.location.href='EditChartSettings.aspx?ChartsettingId='+DashboardId+'"
class="MngImageStyle" style="padding-left: 35px;" />
为什么这个错误显示?我该如何解决这个问题帮助!!!
提前感谢你!!
why does this error show?? how do i solve this plz help!!!
Thanking you in advance!!
推荐答案
我认为这是:
I think its this:
önclick
注意
Notice the
ö
,它应该是onclick,而不是
, it should be onclick, not
önclick
。
这篇关于Chrome浏览器开发人员工具控制台中出现意外的令牌ILLEGAL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!