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.


12 Responses to “Launch and Open Links in New Window or Tab with _blank or _new as Target in HTML and Their Difference” 12 Responses to "paleidimo ir Atidaryti nuorodą naujame lange arba skirtuko su _blank arba _New TARGET HTML ir jų skirtumas"

  1. Sven Sven
    November 10th, 2009 01:54 10 lapkritis 2009 01:54
    12 12

    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

  2. VC VC
    October 28th, 2009 17:07 28 spalis 2009 17:07
    11 11

    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ū!

  3. Pascal Pascal
    October 18th, 2009 18:38 18 spalis 2009 18:38
    10 10

    Thank you,great information! Ačiū, puikus informacijos!

  4. Ximena Ximena
    October 12th, 2009 03:11 12 spalis 2009 03:11
    9 9

    Many thanks!!! Many thanks!

  5. amrit Amrit
    September 4th, 2009 21:38 4 rugsėjis 2009 21:38
    8 8

    really good post tikrai geras post

    thanks ačiū

  6. jmc JVK
    July 3rd, 2009 20:43 3 liepa 2009 20:43
    7 7

    Thenk you! Thenk Jums!

  7. Manoj Manoj
    June 24th, 2009 20:36 24 birželis 2009 20:36
    6 6

    very informative. labai informatyvus. Thank you. Ačiū.

  8. Alev Alev
    January 13th, 2009 19:31 13 sausis 2009 19:31
    5 5

    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?

  9. DanS Dans
    November 7th, 2008 19:55 7 lapkritis 2008 19:55
    4 4

    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!

  10. yesa yesa
    April 10th, 2008 13:42 10 balandis 2008 13:42
    3 3

    Your blog is so helpful. Jūsų blogas taip naudinga. Thank you. Ačiū.

  11. Brian Brian
    December 24th, 2007 12:41 24 gruodis 2007 12:41
    2 2

    Great Post! Didžiosios paštu! Important piece of information. Svarbi informacija.

  12. Gustavo Ricou Gustavo Ricou
    July 9th, 2007 23:27 9 liepa 2007 23:27
    1 1

    thank you… ačiū ...

Leave a Reply Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Galite naudoti šiuos žodžius: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Subscribe to comments funkcija buvo išjungta. To receive notification of latest comments posted, subscribe to Norėdami gauti pranešimus apie naujausius komentarų, užsiprenumeruoti My Digital Life Comments RSS feed Mano skaitmeninis gyvenimas Komentarų RSS or arba register to receive Registruokitės gauti new comments in daily email digest. Nauji komentarai kasdien elektroniniu paštu.
Custom Search

New Articles Nauji straipsniai

Incoming Search Terms for the Article Gaunamus paieškos terminus straipsnis

html open link in new tab html Atidaryti nuorodą naujame skirtuke - -- toolbar:new_tab.html juosta: new_tab.html - -- link:toolbar:new_tab.html nuoroda: įrankių juosta: new_tab.html - -- open link in new tab html Atidaryti nuorodą naujame skirtuke html - -- related:toolbar:new_tab.html Related: įrankių juosta: new_tab.html - -- html open in new tab html Atidaryti naujame skirtuke - -- html link new tab HTML nuoroda į paveikslėlį naujame skirtuke - -- html link open in new tab HTML nuoroda atsidaro naujame skirtuke - -- html new tab html naujame skirtuke - -- href new tab href naujame skirtuke - -- html link in new tab html nuorodą naujame skirtuke - -- open link in new tab Atidaryti nuorodą naujame skirtuke - -- html target new tab html tikslinės naujame skirtuke - -- a href new tab href naujame skirtuke - -- target _blank new tab tikslinė _blank naujame skirtuke - -- html code to open link in new tab HTML code Atidaryti nuorodą naujame skirtuke - -- new tab html naują kortelę html - -- a href open in new tab href Atidaryti naujame skirtuke - -- html open new tab html atidaryti naują skirtuką - -- html code open in new tab HTML code Atidaryti naujame skirtuke - -- open in new tab html Atidaryti naujame skirtuke html - -- link in new tab naujame skirtuke - -- link new tab nuorodą naujame skirtuke - -- html code open link in new tab HTML code Atidaryti nuorodą naujame skirtuke - -- html open in new tab code html Atidaryti naujame skirtuke kodas - -- open new tab html atidaryti naują skirtuką html - -- html open link new tab html Atidaryti nuorodą naujame skirtuke - -- open link new tab html Atidaryti nuorodą naujame skirtuke html - -- href open in new tab href Atidaryti naujame skirtuke - -- how to open link in new tab html Kaip atidaryti nuorodą naujame skirtuke html - -- html open link in a new tab html Atidaryti nuorodą naujame skirtuke - -- window.open new tab window.open naujame skirtuke - -- open in new tab html code Atidaryti naujame skirtuke HTML code - -- href target new tab href tikslinės naujame skirtuke - -- a href open new tab href atidaryti naują skirtuką - -- open link in a new tab html Atidaryti nuorodą naujame skirtuke html - -- target new tab tikslinė naujame skirtuke - -- html link target new tab HTML nuoroda į tikslą naują skirtuką - -- link to new tab nuorodą į naują kortelę - -- html link open new tab HTML nuoroda atidaryti naują skirtuką - -- href open new tab href atidaryti naują skirtuką - -- _blank new tab _blank naujame skirtuke - -- link open in new tab html Atidaryti nuorodą naujame skirtuke html - -- html to open link in new tab HTML Atidaryti nuorodą naujame skirtuke - -- window.open tab window.open skirtuką - -- html new tab link html nuorodą naujame skirtuke - -- new tab link naują kortelę nuorodą - -- html target tab html tikslinės skirtuką - -- a href target new tab href tikslinės naujame skirtuke - -- html href target new tab html href tikslinės naują skirtuką - --