如何在 Mootools 中为具有特定元素 ID 的特定标签/元素触发事件?
我有这个:
<a href="youtube-clip...etc" rel="rokbox" id="video_popup" style="display: none;">Video</a>
这rel="rokbox"
意味着该元素将被 Mootools RokBox 模态框使用,但我已经隐藏了链接。
现在,我添加了以下代码:
window.onload = function() {
if(document.readyState == 'complete') {
// point of execution
// here I want to trigger the "a" element I've wrote up before
}
}
代码到达“执行点”,当我设置一个基本警报时,或者其他什么。