javascript void(0)错误? [英] javascript void(0) error?

查看:122
本文介绍了javascript void(0)错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在表达式网页中嵌入一个google groups框架,代码中包含一个javascript void(0)元素,它是有效的代码,并且在生成的页面上工作正常,但是Web的显示功能呛到它,说:

I am trying to embed a google groups frame in an expression web page, and the code includes a javascript void(0) element, which is valid code, and works fine on the resulting page, but Web's display function chokes on it, saying:

      "无法打开页面:javascript:void(0)。"

      "could not open page :javascript:void(0)."

代码为:

< iframe id =" ; forum_embed" SRC ="的javascript:无效(0)" >

<iframe id="forum_embed" src="javascript:void(0)" >

< / iframe>

</iframe>

推荐答案

一个人好, " javascript:void(0)"不是 要填充iframe的来源,以及用于iframe的
a来源是指向该网站内网页的链接,或者是http://  url指向其他网站的网页。

Well for one,  "javascript:void(0)" is not  a source that is going to fill an iframe,
a source for an iframe is a link to a page within the site or a http:// url to another site's page.

你拥有它的方式"javascript:void(0)"是你的来源和"javascript:void(0)" = no,null,void。

所以EW正在做它应该做的事情,这没什么。

The way you have it "javascript:void(0)" is your source and "javascript:void(0)" = nothing, null, void.
So EW is doing exactly what it should, which is nothing.


这篇关于javascript void(0)错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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