How To Use The <a> To Make Links & Open Them ... - HTML
文章推薦指數: 80 %
The target attribute specifies where the linked document will open when the link is clicked. The default is the current window. If target="_blank" , the ...
SkiptocontentHTML / HTMLAnchors:Here’sHowToCreateLinksForFastNavigation / HowToUsea(ForCreatingHyperlinks)InHTML/HowToUseTheToMakeLinks&OpenThemWhereYouWant!Disclosure:Yoursupporthelpskeepthesiterunning!Weearnareferralfeeforsomeoftheserviceswerecommendonthispage.LearnmoreAttributeofHowToUsea(ForCreatingHyperlinks)InHTMLWhatdoesHowToUseTheToMakeLinks&OpenThemWhereYouWant!do?Specifiesthecontextinwhichthelinkedresourcewillopen.Contents1CodeExample2Framesdeprecated;onlyuse_blank3Defaulttarget4atarget=”_blank”OpeninNewBrowserTab(orWindow)4.1WhyOpeninaNewBrowser?4.2OpenAllExternalLinksinaNewTabwithJavaScript4.3Reasonsnottouse`target=”_blank”5ValuesofthetargetAttribute6AllAttributesoftheanchorElement7BrowserSupportfortargetCodeExample
延伸文章資訊
- 1HTML a target Attribute - W3Schools
The target attribute specifies where to open the linked document: <a href="https://www.w3schools....
- 2How To Use The <a> To Make Links & Open Them ... - HTML
- 3HTML <a> 標籤的target 屬性
如果在一個<a> 標籤內包含一個target 屬性,瀏覽器將會載入和顯示用這個標籤的href 屬性命名的、名稱與這個目標吻合的框架或者視窗中的文件。如果這個指定名稱或id 的框架 ...
- 4How To Use The <a> To Make Links & Open Them ... - HTML
The target attribute specifies where the linked document will open when the link is clicked. The ...
- 5HTML <a> target屬性用法及代碼示例- 純淨天空
HTML <a>目標屬性用於指定在何處打開鏈接。 用法: <a target="_blank | _self | _parent | _top | framename"\>. 屬性值:. _bl...