Postingan lainnya
Kelas Premium!
Belajar bikin website dari nol sekarang
Gunakan kupon "lebihcepat" untuk diskon 25%!
Open in new tab
bagaimana caranya , saat diklik tombol button "Replace Document" terbuka di tab baru ( new tab )
code :
<!DOCTYPE html>
<html>
<body>
<button onclick="myFunction()">Replace document</button>
<script>
function myFunction() {
location.replace("https://www.example.com")
}
</script>
</body>
</html>
thank's
0
3 Jawaban:
Jawaban Terpilih
ganti myFunction()nya jadi
function myFunction() {
window.open("https://www.example.com")
}
1
@dras : oke solved , thank's bro . @KepalaSekolah : solved pak .
0