aboutsummaryrefslogtreecommitdiff
path: root/files/pl/mozilla/tech/xul/atrybut/oncommand/index.html
blob: 97cf313780c44bef62235f4503a4aeea31891d01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
title: oncommand
slug: Mozilla/Tech/XUL/Atrybut/oncommand
tags:
  - Atrybuty_XUL
  - Dokumentacja_XUL
translation_of: Archive/Mozilla/XUL/Attribute/oncommand
---
<div class="noinclude"><span class="breadcrumbs xulRefAttr_breadcrumbs">« <a href="/pl/docs/Dokumentacja_XUL">Dokumentacja XUL</a></span></div>
<dl><dt> <code id="a-oncommand"><a href="https://developer.mozilla.org/pl/docs/Mozilla/Tech/XUL/Atrybut/oncommand">oncommand</a></code>
</dt><dd> Typ: <i>kod skrypt</i>
</dd><dd> Ta funkcja obsługi zdarzenia jest wywołana w momencie aktywacji polecenia. Ma to miejsce, gdy użytkownik zaznaczy pozycję menu lub kiedy naciśnie skrót klawiaturowy przypisany do polecenia.
</dd></dl>
<div class="noinclude">
<h4 id="Przyk.C5.82ad" name="Przyk.C5.82ad">Przykład</h4>
<pre>&lt;button label="Naciśnij mnie" oncommand="alert('Cześć!')"/&gt;
</pre>
<h4 id="Zobacz_tak.C5.BCe" name="Zobacz_tak.C5.BCe">Zobacz także</h4>
<p>Element <code><code><a href="/pl/docs/Mozilla/Tech/XUL/command" title="command">command</a></code></code>
</p>
</div>