aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/mozilla/tech/xul/attribute/onpopupshowing/index.html
blob: ec821daefe506a65d68349cfd3a7b23c22acd700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
title: onpopupshowing
slug: Mozilla/Tech/XUL/Attribute/onpopupshowing
translation_of: Archive/Mozilla/XUL/Attribute/onpopupshowing
---
<div class="noinclude">
 <span class="breadcrumbs xulRefAttr_breadcrumbs">« <a href="/zh-CN/docs/XUL_Reference">XUL Reference home</a></span></div>
<dl>
 <dt>
  <code id="a-onpopupshowing"><a href="https://developer.mozilla.org/zh-CN/docs/Mozilla/Tech/XUL/Attribute/onpopupshowing">onpopupshowing</a></code></dt>
 <dd>
  Type: <em>script code</em></dd>
 <dd>
  This event is sent to a popup just before it is opened. This handler is usually used to dynamically set the contents when the user requests to display it. Returning <code>false</code> from this event handler prevents the popup from appearing.</dd>
 <dd>
  该事件在 popup 打开之前传给它。它用于动态生成菜单项。如果返回 false 值,则 popup 将不会显示菜单项。</dd>
</dl>
<div class="noinclude">
 <p></p>
</div>
<p> </p>