javascript被阻止了 [英] javascript is blocked

查看:293
本文介绍了javascript被阻止了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习网页的javascript。第一次尝试简单地打印你好世界。不会跑。我没有问题地下载包含javascripts的页面。

欢迎任何建议。


问候

mauken。

I''m learning javascript for a web page. The first attempt to simply print "hello world" will not run. I donwload pages that contain javascripts without problem.
Any suggestions would be welcome.

regards
mauken.

推荐答案

欢迎来到TSDN!


发布您的问题代码。
Welcome to TSDN!

Post your problem code.



我正在学习网页的javascript。第一次尝试简单地打印你好世界。不会跑。我没有问题地下载包含javascripts的页面。

欢迎任何建议。


问候

mauken。
I''m learning javascript for a web page. The first attempt to simply print "hello world" will not run. I donwload pages that contain javascripts without problem.
Any suggestions would be welcome.

regards
mauken.



试试这个:


[HTML]< html>

< head>

< script language =" JavaScript"

type =" text / javascript">

document.write(" Hello世界);

< / script>

< noscript>

Hello World

< / noscript>

< / head>

< / html> [/ HTML]


希望它有所帮助,死亡

try this:

[HTML]<html>
<head>
<script language="JavaScript"
type="text/javascript">
document.write("Hello World");
</script>
<noscript>
Hello World
</noscript>
</head>
</html>[/HTML]

Hope it helps, Death


感谢您的回答。 (死亡)

我试过你的例子,它打印了hello world 1次。我预计你好世界将展示2次。

我收到此消息 - 为了保护您的安全,Internet Explorer已限制此文件显示可以访问您计算机的活动内容。点击这里查看选项。我从弹出窗口中单击允许阻止的内容。但没有成功。我一直无法找到允许脚本的设置。


问候

mauken
Thanks for your answer. (death)
I tried your example and it printed hello world 1 time. I expected hello world to show 2 times.
I get this message - to help protect your security internet explorer has restricted this file from showing active content that could access your computer. click here for options. I click allow blocked content - from the pop up window. but have no success. I''ve been unable to find the setting that would allow scripts.

regards
mauken


这篇关于javascript被阻止了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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