JavaScript tips of how to use history on the website and forward
Disanji how to use history on the website and forward
We can let you look at a different document syntax here, we are here to talk about the back () and forward () function of the two, if you own the paper, there is a link back to your own document is the last link document it, and Netscope browser provided by the back button function is not the same. For example, in my document, the normal link to some of us even think that this is the source of documents, said the link called back, and the Netscape browser back button, it is returned to you in the historical record, a link, so different JavaScript, Netscape can also provide similar functions in the back button, try this link, you can experience the feeling to come back, the syntax is as follows:
<html>
<body>
<FORM NAME="buttonbar">
<INPUT TYPE = "button" VALUE = "Back" onClick = "history.
Back () ">
<INPUT TYPE = "button" VALUE = "JS-Home" onClick = "location =
'Script.htm' ">
<INPUT TYPE = "button" VALUE = "Next" onCLick = "history.
Forward () ">
</ FORM>
</ Body>
</ Html>
You can also directly above written history.go (-1) and history.go (1)
Tags: css javascript, css website, w3c website w3c statement w3c css






Leave a Reply