“Buka tautan di jendela baru, bukan tab” Kode Jawaban

cara membuat tautan terbuka di jendela baru

The short answer is: just add a target="_blank" attribute to your links (anchor tags).

<a href="https://www.thesitewizard.com/" target="_blank">thesitewizard.com</a>
FunToCode

Buka tautan di jendela baru, bukan tab

<a href="https://www.codegrepper.com/" target="_blank">Grep!</a> 
VasteMonde

Buka tautan di jendela baru, bukan tab

<!DOCTYPE html>
<html>
	<body>
		<button onclick="myFunction()">Try it</button>

		<script>
			function myFunction() {
				// JS function to open a new window(not "New Tab"), e.g: here, we are
				// opening the new window in youtube.com 
  				var myWindow = window.open("https://www.youtube.com", "", width = "100vw", height = "100vh");
			}
		</script>

	</body>
</html>
Samiul Abid Chowdhury

Buka tautan di jendela baru, bukan tab

<!DOCTYPE html>
<html>
	<body>

		<p>Click the button to open a new window called "MsgWindow" with some text.</p>

		<button onclick="myFunction()">Try it</button>

		<script>
			function myFunction() {
				// JS function to open a new window(not "New Tab"), e.g: here, we are
				// opening the new window in youtube.com 
  				var myWindow = window.open("https://www.youtube.com", "", width = "100vw", height = "100vh");
			}
		</script>

	</body>
</html>
Samiul Abid Chowdhury

Jawaban yang mirip dengan “Buka tautan di jendela baru, bukan tab”

Pertanyaan yang mirip dengan “Buka tautan di jendela baru, bukan tab”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya