Skip to content

Commit

Permalink
[zh-tw] sync translated content (#23165)
Browse files Browse the repository at this point in the history
Co-authored-by: Allo <[email protected]>
  • Loading branch information
mdn-bot and yin1999 authored Aug 20, 2024
1 parent 9473bf2 commit 7e02971
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions files/zh-tw/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@
/zh-TW/docs/Web/API/HTMLOrForeignElement/dataset /en-US/docs/Web/API/HTMLElement/dataset
/zh-TW/docs/Web/API/IndexedDB_API/Basic_Concepts_Behind_IndexedDB /zh-TW/docs/Web/API/IndexedDB_API
/zh-TW/docs/Web/API/Media_Streams_API /zh-TW/docs/Web/API/Media_Capture_and_Streams_API
/zh-TW/docs/Web/API/Navigator/registerProtocolHandler/Web-based_protocol_handlers /zh-TW/docs/Web/API/Navigator/registerProtocolHandler
/zh-TW/docs/Web/API/NavigatorOnLine /en-US/docs/Web/API/Navigator/onLine
/zh-TW/docs/Web/API/NavigatorOnLine/Online_and_offline_events /en-US/docs/Web/API/Navigator/onLine
/zh-TW/docs/Web/API/ParentNode/children /en-US/docs/Web/API/Element/children
Expand Down
2 changes: 1 addition & 1 deletion files/zh-tw/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -2207,7 +2207,7 @@
"modified": "2019-03-23T22:36:10.122Z",
"contributors": ["yachiehwu", "alphan_chen"]
},
"Web/API/Navigator/registerProtocolHandler/Web-based_protocol_handlers": {
"Web/API/Navigator/registerProtocolHandler": {
"modified": "2019-03-23T23:51:06.175Z",
"contributors": ["chrisdavidmills", "teoli", "Coolcd"]
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
---
title: Firefox 3 Web-based protocol handler
slug: Web/API/Navigator/registerProtocolHandler/Web-based_protocol_handlers
title: Navigator:registerProtocolHandler() 方法
slug: Web/API/Navigator/registerProtocolHandler
---

### 摘要
{{APIRef("HTML DOM")}}{{securecontext_header}}

window\.navigator.registerProtocolHandler 讓網站可以將自己註冊為特定通訊協定的處理者
**{{domxref("Navigator")}}****`registerProtocolHandler()`** 方法讓網站可以將自己註冊為特定通訊協定的處理者

### 語法
## 語法

```plain
window.navigator.registerProtocolHandler(protocol, uri, title);
```js-nolint
registerProtocolHandler(scheme, url)
```

- protocol 是網站想要處理的 protocol 名稱,用字串表示。
- uri 是要給 handler 處理的 URI 字串。你可以在字串裡用 "%s" 來代表 escaped 過、需要處理的 URI。
- title 是 handler 的 title,會以字串的形式呈現給使用者。

### 例子

Expand Down

0 comments on commit 7e02971

Please sign in to comment.