如何在 XUL 树单元中嵌入链接? [英] How to embedded a link in a XUL treecell?

查看:26
本文介绍了如何在 XUL 树单元中嵌入链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题很简单.我想在 XUL 树单元中放置一个链接.谢谢

The question is simple. I want to put a link in a XUL treecell. thanks

推荐答案

我只让它与 onclick 事件一起工作:

I've only gotten this to work with onclick events:

<text value="http://getsatisfaction.com/"
        class="url"
        onclick="window.open('http://getsatisfaction.com/');"/>

当然,这些可能应该通过 js 而不是硬编码来应用.

And, of course, these should probably be applied via js instead of hard-coding.

嗯.Mozilla 文档 给出了一个替代示例:

hrm. Mozilla docs give an alternate example:

<label href="http://`enter code here`example.com" 
        class="text-link" 
        value="Click here to go to example.com"/>

这篇关于如何在 XUL 树单元中嵌入链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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