由于页面上的html不正确导致页面上出现javascript错误 [英] javascript error on page due to incorrect html on page

查看:70
本文介绍了由于页面上的html不正确导致页面上出现javascript错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能这是一个愚蠢的,但我真的不知道解决方案。

我的网站www.turbofeedback.com使用IE9浏览器访问时会因为语法错误而弹出javascript,现在我真的不知道解决方案,因为语法错误是一些动态生成的脚本标签。

可以请任何人帮忙。

May be this is a silly one but i don''t really know the solution.
My site www.turbofeedback.com when accessed using IE9 browser gives javascript pop up due to syntax error, now i don''t really know the solution as the syntax error is with some script tag which is dynamically generated.
Could any one please help.

推荐答案

尝试使用firefox,打开页面,然后从extra打开调试控制台 - > Web开发人员。您将看到脚本标记放在段落元素中。粘贴下面的代码。



Try firefox, open the page and then open the debug console from extra -> web developer. You''ll see the script tags are placed in paragraph elements. Pasted the code below.

<p><script type="text/javascript"></p>
<p>  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-38777756-1']);
  _gaq.push(['_trackPageview']);</p>
<p>  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();</p>
<p></script></p>







祝你好运!




Good luck!


这篇关于由于页面上的html不正确导致页面上出现javascript错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆