| View previous topic :: View next topic |
| Author |
Message |
BigDaddy
Joined: 26 May 2006 Posts: 147
|
Can i use javascript to find frames/windows the same way the "<a target=></a>" does it ?
its not exactly what i need
i dont know where the "target" is. it could be in the parent or sibling. |
| |
|
|
|
|
Poolkop
Joined: 01 Jun 2006 Posts: 123
|
| Afaik youll have to loop through them all then |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Brrrr |
| |
|
|
Poolkop
Joined: 01 Jun 2006 Posts: 123
|
| Working with frames is pretty brrrr in the first place anyways |
| |
|
|
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
um
You don't feel like what? Using the DOM?
Document.getElementsByTagName("a") returns a collection of anchors... |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| B0a,its more complicated. i have frames here and i need to get the "document.location.href" of a target, the way <a target=></a> does it |
| |
|
|
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
| Is that an incredibly circuitous way of saying you want a list of all window objects? Because if so, you can't get them. You can only access those related to the current one via a frameset or the saved return value of window.open(). |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Peter Pitt, i only need the ones <a target> could possibly address. |
| |
|
|
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
| That includes all existing and all possible windows and frames. |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| i would be happy if i could get all undernith "top." |
| |
|
|
| Page 1 of 2 |
Goto page 1, 2 Next |
|