Launch and Open Links in New Window or Tab with _blank or _new as Target in HTML and Their Difference Paleisti ir Atidaryti nuorodą naujame lange arba skirtuko su _blank arba _New TARGET HTML ir jų Skirtumas
On most websites, publishers may prefer to open the links to other web pages, especially external links that open web pages out of their own sites, in a new web browser window or tab, as most of the time, clicking on a link will load the new document from the link in the same window with where the link was. Daugelyje svetainių, leidėjai gali norėti atidaryti nuorodas į kitus interneto puslapius, ypač išorinių nuorodų, kad atidaryti interneto puslapius iš savo svetainės, į naują naršyklės langą ar kortelę, nes didžiąją dalį laiko, paspaudę nuorodą įkelti naują dokumentą, iš to paties lango su nuoroda, kur nuoroda buvo. In HTML web programming language, to launch the new document (web pages) from links in a new window or tab effect is typically done through the use of target attributes on those links. HTML programavimo kalbą, pradėti naują dokumentą (Web pages) nuorodos, naujame lange ar kortelėje "poveikis dažnai yra atliekamas per tikslines atributų naudoti šiuos ryšius.
In this case, the link anchors will be using “_blank” as the value of the “target” attribute. Šiuo atveju nuoroda inkarai, kuris bus naudojamas "_blank" kaip "target" attribute value. “_blank” tells the web browser to open the new document loaded from the link in a new window. "_blank" Pasakoja naršyklėje atidarykite naują dokumentą įkeltas į naują langą nuorodą. “target” attribute is also used in websites with frame structure to tell the web browser which frame the target page of a link should open when click. "Target" atributas yra taip pat naudojamas tinklapis su rėmo konstrukcijos pasakyti, interneto naršyklę, kuri rėmo tikslinės puslapio nuoroda turi atsidaryti, kai mygtuko paspaudimu. However, “_blank” does not require the use of any frames. Vis dėlto, "_blank" nereikalauja jokių rėmelių naudojimas. The syntax or HTML code is typically as below: Sintaksė arba HTML kodas paprastai, kaip nurodyta toliau:
<a href=”newwindow.html” target=”_blank”>New Window</A> <a href="newwindow.html" target="_blank"> Naujas langas </ A>
There are also publishers who use “_new” instead of “_blank” as the value for “target” attribute to open a link in new window. Taip pat yra leidėjų, kurie naudoja "_New" vietoj "_blank" kaip "tikslinė" vertė atributas atidaryti naujame lange nuorodą. There is actually no “_new” defined as frame target names by W3C HTML standards. Yra tikrai ne "_New" apibrėžiamas kaip rėmas tikslinės pavadinimus W3C HTML standartus. The only four reserved names are “_blank”, “_parent”, “_self” and “_top”. Tik keturi saugomos pavadinimai yra "_blank", "_parent", "_self" ir "_top". However, the “_new” value works the same way as “_blank” to launch the linked web documents in new browser window because of graceful error handling by web browsers. Tačiau "_New" vertė darbai taip pat kaip ir "_blank" pradėti susijusios interneto dokumentų naują naršyklės langą, nes gracinga klaidų interneto naršyklės. So “_new” is not a valid value for “target” attribute in link <a> anchor, and may cause inconsistent behaviour for strictly HTML compliant browser that ignores all other target names as frame target name should begin with an alphabetic character (az and AZ). Taigi "_New" nėra galiojančių vertę "Target" atributo ryšys <a> inkarą, ir gali sukelti nesuderinamas elgesys griežtai HTML naršyklė, kuri ignoruoja atitiktis visoms kitoms tikslinėms pavadinimų kaip rėmas tikslo pavadinimas turi prasidėti abėcėlės simbolių (AZ ir AZ).
When “_new” is used, the web browser will look for an existing browser window that carries the “_new” handle name. Kai "_New" yra naudojama, interneto naršyklė ieškos esamos naršyklės langą, kad vykdo "_New" rankena pavadinimas. If there is none then browser will create and launch the target web document at new window (or new tab in browser that supports tabbed browsing), where browser is considered to be recovering from HTML error of targeting a non-existent window. Jei niekas to naršyklė bus sukurti ir pradėti tikslinę interneto dokumentą naujame lange (arba naujoje kortelėje su naršykle, kuri palaiko naršymo kortelėse), kai naršyklė yra laikoma atsigauna HTML klaidos orientacija neegzistuojančius langą. In this case, the new window will be named “_new”. Tokiu atveju, naujas langas bus pavadintas "_New". However, if a window or a tab with “_new” handle already existed, the target page will be loaded into that window instead. Tačiau jei langą ar kortelę su "_New" rankena jau egzistavo, lapu bus įkeltas į tą langą. Theoretically, you no need to use “_new” as the value for “target”, as any other value name (ie “newwindow” or “newtab”) will work to create a new window if the so named window hasn't existed yet when clicked on the link. Teoriškai, jums nereikia naudoti "_New" kaip "tikslinė" vertė, kaip bet kuris kitas vertę pavadinimą (pvz., "Newwindow" arba "newtab") sieks sukurti naują langą, jei taip vadinamas lango dar egzistavo dar Paspaudus ant šios nuorodos.
In other word, if you want the links to open in a new window on every click, use the “_blank”. Kitaip tariant, jei norite, kad nuorodos atidaryti naują langą kiekvieną paspaudimą, naudokite "_blank". And you can use “_new” or another other valid value name starting with alphabetic character to open a new window and re-use that window for any other subsequent clicks that target to the same name. Taip pat galite naudoti "_New" ar kitą kitų svarbių vertę pavadinimą pradedant raidinių simbolių atidaryti naują langą, ir pakartotinai naudoti, kad langą dėl bet kokių vėlesnių paspaudimų tikslą tuo pačiu pavadinimu.
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Automatinis vertimas gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- How to Open Links in New Tab in Safari Kaip atidaryti nuorodą naujame lape ir Safari
- How to Open and View or Extract CHM (Compiled HTML) Files in Linux Kaip atidaryti ir peržiūrėti arba išrašo CHM (Compiled HTML) Failai Linux
- Add Open Command Window Here to XP Folder with PowerToy Pridėti Open Command Window Here to XP Aplankas su PowerToy
- Open Elevated Command Prompt Window Here as Administrator at Current Folder Directly in Vista Windows Explorer Atidarykite komandų eilutės langą Štai kaip administratorius Dabartinis katalogas Tiesiogiai Vista Windows Explorer
- How to Identify and Know Where A Link Will Open in Safari Kaip nustatyti ar žinoti, kur nuoroda atsidaro Safari
- Solution: Transfer from Window XP to Window Vista Sprendimas: Pervežimas iš Window XP Window Vista "
- Run Separate Isolated IE8 Window Frame Session with NoMerge Switch for Multiple Logins Pradėti Atskiras Pavieniai IE8 lango sesijos NoMerge Perjungti į daug vartotojo vardų
- Difference Between XP and Vista on Arrangement Sequence Start Menu Recent Programs Skirtumo tarp XP ir Vista Išdėstymas seka meniu Naujausios programos
- HTML-PDF-Converter Online Service to Convert Webpage to PDF Files HTML PDF Converter Online Service Konvertuoti į PDF failus tinklalapį
- ZAGG's invisibleSHIELD Protective Film Hits Target Stores Nationwide Parsisiųsti Zagg's invisibleSHIELD apsaugine plėvele Hits Tikslinė parduotuvių visoje šalyje










































November 10th, 2009 01:54 10 lapkritis 2009 01:54
Thanks this was great! Dėkojame, tai buvo puiki! Found an other solution Rasti kito sprendimo
http://social.msdn.microsoft.com/forums/en-US/iewebdevelopment/thread/8aedc1bc-f588-4bb8-a4a9-0674ad1d1101 http://social.msdn.microsoft.com/forums/en-US/iewebdevelopment/thread/8aedc1bc-f588-4bb8-a4a9-0674ad1d1101
October 28th, 2009 17:07 28 spalis 2009 17:07
I always forget this code although I did it more than hundreds times. Visada pamiršti šį kodą nors aš tai daugiau nei šimtus kartų. Thanks! Ačiū!
October 18th, 2009 18:38 18 spalis 2009 18:38
Thank you,great information! Ačiū, puikus informacijos!
October 12th, 2009 03:11 12 spalis 2009 03:11
Many thanks!!! Many thanks!
September 4th, 2009 21:38 4 rugsėjis 2009 21:38
really good post tikrai geras post
thanks ačiū
July 3rd, 2009 20:43 3 liepa 2009 20:43
Thenk you! Thenk Jums!
June 24th, 2009 20:36 24 birželis 2009 20:36
very informative. labai informatyvus. Thank you. Ačiū.
January 13th, 2009 19:31 13 sausis 2009 19:31
Great post thank you. Didžiosios paštu ačiū.
I want to ask a question. Norėčiau užduoti klausimą. How can i open a page in a new tab in IE7? Kaip atidaryti puslapį naujame skirtuke IE7? What can i use instead of window.open in javascript? Ką galiu naudoti vietoj window.open JavaScript?
Have you got any idea for this? Ar turite idėją apie tai?
November 7th, 2008 19:55 7 lapkritis 2008 19:55
Very helpful. Labai naudinga. Wondering if there's a way to provide some sort of command to make the URL open in a tab only. Nežinote, ar yra būdas suteikti šiek tiek vadovavimo Rūšiuoti atlikti URL atidaryti tik kortelėje.
Any thoughts or knowledge is most appreciated! Bet koks minčių ar žinių labiausiai vertina!
April 10th, 2008 13:42 10 balandis 2008 13:42
Your blog is so helpful. Jūsų blogas taip naudinga. Thank you. Ačiū.
December 24th, 2007 12:41 24 gruodis 2007 12:41
Great Post! Didžiosios paštu! Important piece of information. Svarbi informacija.
July 9th, 2007 23:27 9 liepa 2007 23:27
thank you… ačiū ...