How to embedded a link in a XUL treecell?

◇◆丶佛笑我妖孽 提交于 2019-12-25 05:32:58

问题


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


回答1:


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

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

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

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"/>


来源:https://stackoverflow.com/questions/2551928/how-to-embedded-a-link-in-a-xul-treecell

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!