Launch and Open Links in New Window or Tab with _blank or _new as Target in HTML and Their Difference Peluncuran dan Buka Link di New Window atau Tab dengan _blank atau _NEW sebagai Target dalam HTML dan Perbedaan mereka
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. Pada kebanyakan website, penayang dapat memilih untuk membuka link ke halaman web yang lain, terutama eksternal link yang membuka halaman web dari situs mereka sendiri, dalam sebuah jendela browser web baru atau tab, karena sebagian besar waktu, mengklik link akan memuat dokumen baru dari link dalam jendela yang sama dengan di mana link ini. 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. Dalam HTML bahasa pemrograman web, untuk memulai dokumen baru (halaman web) dari link di jendela baru atau tab efek yang biasanya dilakukan melalui penggunaan atribut target pada link tersebut.
In this case, the link anchors will be using “_blank” as the value of the “target” attribute. Dalam kasus ini, link jangkar akan menggunakan "_blank" sebagai nilai dari "target" atribut. “_blank” tells the web browser to open the new document loaded from the link in a new window. "_blank" Memberitahu browser web untuk membuka dokumen baru diambil dari link di jendela baru. “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" atribut juga digunakan dalam situs dengan struktur bingkai untuk memberitahu browser web yang membingkai halaman target dari sebuah link yang harus terbuka ketika klik. However, “_blank” does not require the use of any frames. Namun, "_blank" tidak memerlukan penggunaan setiap frame. The syntax or HTML code is typically as below: Sintaks atau kode HTML biasanya sebagai berikut:
<a href=”newwindow.html” target=”_blank”>New Window</A> <a href="newwindow.html" target="_blank"> New Window </ A>
There are also publishers who use “_new” instead of “_blank” as the value for “target” attribute to open a link in new window. Ada juga penerbit yang menggunakan "_NEW", bukannya "_blank" sebagai nilai untuk "target" atribut untuk membuka link di jendela baru. There is actually no “_new” defined as frame target names by W3C HTML standards. Sebenarnya tidak ada "_NEW" didefinisikan sebagai sasaran bingkai nama dengan standar W3C HTML. The only four reserved names are “_blank”, “_parent”, “_self” and “_top”. Hanya empat reserved Nama "_blank", "_parent", "_self" dan "_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. Namun, "_NEW" nilai bekerja dengan cara yang sama sebagai "_blank" untuk membuka dokumen-dokumen web yang terhubung dalam jendela browser baru karena kesalahan anggun penanganan oleh web browser. 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). Jadi "_NEW" bukan merupakan nilai yang valid untuk "target" di link <a> atribut jangkar, dan dapat menyebabkan perilaku tidak konsisten untuk memenuhi persyaratan ketat HTML browser yang mengabaikan semua nama target lain sebagai bingkai nama target harus dimulai dengan sebuah karakter alfabet (az dan AZ).
When “_new” is used, the web browser will look for an existing browser window that carries the “_new” handle name. Ketika "_NEW" digunakan, web browser akan mencari jendela browser yang ada yang membawa "_NEW" nama menangani. 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. Jika tidak ada maka browser akan membuat dan meluncurkan web target baru dokumen di jendela (atau tab baru pada browser yang mendukung tabbed browsing), di mana browser dianggap pulih dari HTML error menargetkan tidak ada jendela. In this case, the new window will be named “_new”. Dalam kasus ini, jendela baru akan dinamakan "_NEW". However, if a window or a tab with “_new” handle already existed, the target page will be loaded into that window instead. Namun, jika jendela atau tab dengan "_NEW" menangani sudah ada, halaman target akan dimuat ke dalam jendela itu sebagai gantinya. 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. Secara teori, Anda tidak perlu menggunakan "_NEW" sebagai nilai untuk "target", sebagai nama nilai lain (yaitu "Newwindow" atau "newtab") akan bekerja untuk membuat jendela baru jika jendela dinamakan demikian belum ada belum ketika diklik pada link.
In other word, if you want the links to open in a new window on every click, use the “_blank”. Dengan kata lain, jika Anda ingin link ke terbuka di jendela baru pada setiap klik, menggunakan "_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. Dan Anda dapat menggunakan "_NEW" atau lain nama lain nilai yang valid dimulai dengan karakter abjad untuk membuka jendela baru dan kembali menggunakan jendela untuk setiap klik yang lain target berikutnya untuk nama yang sama.
IMPORTANT : The page is machine translated and provided "as is" without warranty. PENTING: Halaman ini adalah mesin diterjemahkan dan diberikan "sebagaimana adanya" tanpa jaminan. Machine translation may be difficult to understand. Terjemahan mesin mungkin sulit untuk mengerti. Please refer to Silakan merujuk ke original English article artikel asli bahasa Inggris whenever possible. bila memungkinkan.
Related Articles Artikel Terkait
- How to Open Links in New Tab in Safari Bagaimana Buka Link di Tab Baru di Safari
- How to Open and View or Extract CHM (Compiled HTML) Files in Linux Cara Buka dan Lihat atau Extract CHM (Compiled HTML) File di Linux
- Add Open Command Window Here to XP Folder with PowerToy Tambahkan Open Command Window Here to XP Folder dengan PowerToy
- Open Elevated Command Prompt Window Here as Administrator at Current Folder Directly in Vista Windows Explorer Peningkatan Buka Command Prompt Window Di sini sebagai Administrator pada Folder Aktif Tepat di Vista Windows Explorer
- How to Identify and Know Where A Link Will Open in Safari Bagaimana Identifikasi dan Know Will Buka Sebuah Link di Safari
- HTML-PDF-Converter Online Service to Convert Webpage to PDF Files HTML-PDF-Converter Online Service untuk Convert Halaman Web ke PDF File
- Run Separate Isolated IE8 Window Frame Session with NoMerge Switch for Multiple Logins Pisahkan Jalankan Window Frame Isolated IE8 Sesi dengan Multiple NoMerge Switch untuk Login
- Solution: Transfer from Window XP to Window Vista Solusi: Transfer dari Window XP ke Window Vista
- Difference Between XP and Vista on Arrangement Sequence Start Menu Recent Programs Perbedaan Antara XP dan Vista pada Start Menu Sequence Penyusunan Program terbaru
- Trick to Add AdSense, AdBrite and Other JavaScript Ad Code Directly to Blogger HTML Template Trik ke Add AdSense, AdBrite dan lain Kode Iklan JavaScript Langsung ke Blogger Template HTML










































September 4th, 2009 21:38 4 September 2009 21:38
really good post posting benar-benar baik
thanks terima kasih
July 3rd, 2009 20:43 3 Juli 2009 20:43
Thenk you! Thenk Anda!
June 24th, 2009 20:36 24 Juni 2009 20:36
very informative. sangat informatif. Thank you. Terima kasih.
January 13th, 2009 19:31 13 Januari 2009 19:31
Great post thank you. Great posting terima kasih.
I want to ask a question. Saya ingin mengajukan pertanyaan. How can i open a page in a new tab in IE7? Bagaimana saya dapat membuka halaman di tab baru di IE7? What can i use instead of window.open in javascript? Apa yang dapat saya gunakan bukan window.open di javascript?
Have you got any idea for this? Apakah Anda punya ide untuk ini?
November 7th, 2008 19:55 7 November 2008 19:55
Very helpful. Sangat membantu. Wondering if there's a way to provide some sort of command to make the URL open in a tab only. Bertanya-tanya apakah ada cara untuk memberikan semacam perintah untuk membuat URL terbuka di tab saja.
Any thoughts or knowledge is most appreciated! Setiap pemikiran atau pengetahuan yang paling dihargai!
April 10th, 2008 13:42 10 April 2008 13:42
Your blog is so helpful. Blog Anda sangat membantu. Thank you. Terima kasih.
December 24th, 2007 12:41 24 Desember 2007 12:41
Great Post! Great Post! Important piece of information. Sepotong informasi penting.
July 9th, 2007 23:27 9 Juli 2007 23:27
thank you… terima kasih ...