Roger,

This is one of the reasons why frames are generally deprecated (I know
I encouraged you to use them if they fit your need).

The only way I know of to accomplish that is with a javascript onload
handler in the inner document which explicitly loads the anchor
reference. Javscript in the inner window sees the parent windows as
'opener', so it could read the original url from there to decide on
that action.

I know it's ugly..it's also untested

<script>
function mynav() {
// opener is the parent window
   var url = opener.location
   var n = indexOf(url,'#')
   if(n != -1) {
       var ref = url.substring(n)
// window is the current inner window
// this is probably fussier than I have shown here
       window.focus()
       window.location = ref
   }
}
</script>
</head>
<body onload="mynav();" >
...


There is a more intuitive approach that does pretty much the same
thing under the covers should one adopt jquery but that is   probably
overkill in this case.


 - michael dykman

On Fri, Dec 18, 2009 at 1:17 PM, Roger Hui <[email protected]> wrote:
> 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?
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
 - michael dykman
 - [email protected]

"May you live every day of your life."
    Jonathan Swift

Larry's First Law of Language Redesign: Everyone wants the colon.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to