![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
* The JS that I'm using is: function openPageB( someAnchor ) { var oNewWin = window.open("/PageB.html", "Help", "width=400, height=350, status=no, scrollbars=yes, resizable=yes"); |
|
oNewWin.onLoad = window.scrollTo(0, document.anchors[someAnchor]); |
|
My reasoning is based on by belief that document.anchors will return an integer value based on the geographic location of some given named anchor within the document object. |
#3
| |||
| |||
|
|
yootzee (AT) hotmail (DOT) com (yootzee) writes: * The JS that I'm using is: function openPageB( someAnchor ) { var oNewWin = window.open("/PageB.html", "Help", "width=400, height=350, status=no, scrollbars=yes, resizable=yes"); Why not just var oNewWin = window.open("/PageB.html#"+someAncyhor, "Help", ... oNewWin.onLoad = window.scrollTo(0, document.anchors[someAnchor]); I don't know if this will work, but in any case "onload" is with all small letters. My reasoning is based on by belief that document.anchors will return an integer value based on the geographic location of some given named anchor within the document object. ... and that is an unfounded belief. The collection "document.anchors" contains HTML elements (i.e., DOM nodes). It is browser dependent how to find the horizontal offset of the element on the page. Methods include: elem.offsetLeft // IE, Opera, Mozilla, // but not inside positioned elements elem.scrollLeft // Opera (bug?) elem.x // Netscape 4 /L |
![]() |
| Thread Tools | |
| Display Modes | |
| |