便捷鍵(或accesskey;又稱:存取鍵、-{zh-cn:; zh-tw:訪問鍵}-)是指在網頁瀏覽器或其他软件中定义的按下特定键盘按鍵即可跳转或调用相应功能的按键,例如快速切換到網頁中的不同區域。這項概念在公元1999年被提出且立刻得到各家瀏覽器的支援。便捷鍵最受到注目的是它提供某些身心障礙人士能更加方便且有效率地瀏覽網頁。
在网页浏览器
便捷鍵並非一般電腦軟體中的键盘快捷鍵、热键或组合键(如 + 通常是儲存檔案的組合按鍵),而是由網頁設計師在HTML中指定。HTML中針對便捷鍵的語法為accesskey="h",其中h即為被指定之便捷鍵。便捷鍵在HTML中僅需指定為單一字元,但不同瀏覽器有不同啟動便捷鍵之組合鍵,因此大多需要同時接下數個按鍵才能完整地使用便捷鍵。
網頁設計師在配置便捷鍵時並非漫無章法。一般而言,會將以下最常用到的目標配置上便捷鍵:
*經常使用的超連結
*輸入表單,例如搜尋或回應表單
*具有重要資訊或經常更動之網頁,例如首頁、最新消息、問與答、著作權聲明、或是網站地圖
*本網頁的便捷鍵使用說明
*上一篇與下一篇文章
以方便使用者快速地到達最常使用的目標。
在不同瀏覽器的啟動方法
對於大多數的瀏覽器,啟動便捷鍵的組合鍵為(於一般個人電腦的作業系統),或是(於麥金塔電腦),並同時按下網頁中所指定的某一便捷鍵。
参考资料
外部連結
- [https://bugzilla.wikimedia.org/show_bug.cgi?id=477 A bug report for the MediaWiki software regarding conflicts with Accesskeys] – includes lengthy discussion of various problems on different platforms
- [https://userstyles.org/styles/10407 A CSS stylesheet to make access keys on a website visible]
- [https://web.archive.org/web/20070630133428/http://www.wats.ca/show.php?contentid=47 ACCESS + KEY = Accesskey (XHTML Role Access Module still flawed)]
- [http://john.foliot.ca/accesskeys-and-reserved-keystroke-combinations Accesskeys and Reserved Keystroke Combinations]
- [https://juicystudio.com/article/firefox2-accesskeys.php Changes to Accesskeys in Firefox 2.0]
- [https://kb.mozillazine.org/Ui.key.contentAccess Ui.key.contentAccess] – instructions on configuring access key behavior in Mozilla Firefox
- [http://webarchive.nationalarchives.gov.uk/20100807034701/http://archive.cabinetoffice.gov.uk/e-government/resources/handbook/html/2-4.asp UK Government suggested numerical key standard]
- [http://www.blether.com/archives/2006/02/userdefined_acc.php User-defined Accesskeys using PHP]
- [http://www.sitepoint.com/article/accesskeys Using Accesskeys is Easy]
- [http://www.standardaccesskeys.com/SAK2014/ SAK2014: Standard Access Keys 2014]
评论 (0)