> From: Roger Hui <[email protected]> > > Does anyone know how to specify as an URL a jump > to a particular anchor in an HTML page which uses frames, > or know definitively that it can not be done? > > For example, the anchor for the References section in > "The Evolution of APL" is "ref". If that page did not > use frame, I could say: > http://www.jsoftware.com/papers/APLEvol.htm#ref > But that page does use frames, so how do I do it? > Or is it not possible?
It's javascript-only. You need to append the hash part of Frameset URL to src of the target frame. As an example, use this URL: http://www.w3schools.com/html/tryit.asp?filename=tryhtml_frame_jump and paste the code below and click [Edit and Click Me] ============================================================================ <html> <script> function jump() { var f = document.getElementById("main"); f.src += "#ref"; // chop up document.location instead } </script> <frameset cols="20%,80%" onload="jump()"> <frame id=left name=left src="http://www.jsoftware.com/papers/APLEvolTOC.htm"> <frame id=main name=main src="http://www.jsoftware.com/papers/APLEvol1.htm"> </frameset> </html> ============================================================================ ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
