Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1652|回复: 0

xul文件中加入js代码

[复制链接]

388

主题

602

帖子

2218

积分

金牌会员

Rank: 6Rank: 6

积分
2218
发表于 2016-5-18 12:28:04 | 显示全部楼层 |阅读模式
<prefwindow id="NotificationsDialog" type="child"
            xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
            dlgbuttons="accept,cancel"
            title="&notificationsDialog2.title;">
<script>
<![CDATA[
window.addEventListener("load", function () {

document.getElementById("title_richinfo").value=document.getElementById("NotificationsDialog").getAttribute("title");
   
});
]]>
</script>

......
</prefwindow>

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-4-18 17:40 , Processed in 0.056512 second(s), 19 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表