onClick to return to the same part of HTML document
Is it possible to use the "onClick" event to return to the same part of an HTML page?
In a site that uses frames, I use the "onMouseOver" and "onMouseOut" events and get a return to the top of the page if the link is clicked.
This is OK because it gives access to another frame, which is what was wanted, but I could improve the script if it was possible to add the "onClick" event to return to the same part of the script (for example file#glossary_of_terms).
If it is possible, can you give an example of the code?
Thank you for your help.
|