Sejarah maju () metode
Definisi dan Penggunaan
maju () metode dapat dimuat dalam daftar sejarah untuk URL berikutnya.
Metode ini disebut efek setara dengan mengklik tombol maju atau hubungi history.go (1).
tatabahasa
history.forward()
Dukungan Browser
Semua browser utama mendukung maju () metode
contoh
contoh
Membuat tombol maju pada halaman:
<! DOCTYPE html>
<Html>
<Head>
<Script>
berfungsi GoForward () {
window.history.forward ()
}
</ Script>
</ Kepala>
<Body>
<Input type = "button" value = "Forward" onclick = "GoForward ()">
</ Body>
</ Html>
<Html>
<Head>
<Script>
berfungsi GoForward () {
window.history.forward ()
}
</ Script>
</ Kepala>
<Body>
<Input type = "button" value = "Forward" onclick = "GoForward ()">
</ Body>
</ Html>
Contoh output di atas:
Coba »
sejarah Obyek