How to automatically set the page viewing area? That is, if done through an anchor, it will be of the type index.html # link, and in the text itself you can insert <a id="link"> </a>. And when you go to the index.html # link of the visitor, you automatically threw at that part of the text where <a id="link"> </a> is located. Is it possible to organize it through js, php? Link to the record of the site / category / record /
1 answer
- via JS - yes, window.location.href = ....
- through php can not read carefully
- <script> window.location.href = "#link"; </ script> Did not help. - rimlin
- document.location.href ... - Barton
|