Skip to content

Commit 6a6e6d9

Browse files
Update article.md
1 parent 747efb0 commit 6a6e6d9

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

2-ui/4-forms-controls/2-focus-blur/article.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,20 @@
152152

153153
ترتیب به این صورت است: `1 - 2 - 0`. به طور نرمال، `<li>` از focus پشتیبانی نمی‌کند اما `tabindex` آن را به همراه eventها و style دادن با `:focus` مهیا می‌کند.
154154

155-
```smart header="The property `elem.tabIndex` works too"
156-
We can add `tabindex` from JavaScript by using the `elem.tabIndex` property. That has the same effect.
155+
```smart header="هم کار می‌کند. `elem.tabIndex`"
156+
157+
ما می‌توانیم `tabindex`از JavaScript را با استفاده از `elem.tabIndex` اضافه کنیم. آن هم اثر یکسان را دارد
158+
157159
```
158160
159161
## Delegation: focusin/focusout
160162
161-
Events `focus` and `blur` do not bubble.
162-
163-
For instance, we can't put `onfocus` on the `<form>` to highlight it, like this:
163+
.وجود ندارد `blur` و `focus` رفتار بالا رفتن حبابی در
164+
کنیم، مثل این highlight بگذاریم تا آن را `<form>` را روی `onfocus` برای مثال ما نمی‌توانیم
164165
165166
```html autorun height=80
166-
<!-- on focusing in the form -- add the class -->
167+
<!-- را اضافه کنید class -- روی فرم focus در مورد -->
168+
167169
<form *!*onfocus="this.className='focused'"*/!*>
168170
<input type="text" name="name" value="Name">
169171
<input type="text" name="surname" value="Surname">

0 commit comments

Comments
 (0)