javascript help
- Started
- Last post
- 7 Responses
- steadyvibe
how would you get Javascript to detect if a window is in a frame or not, then redirect to the proper page??
- Mick0
You mean like this...
http://www.logiko.com/references…
- steadyvibe0
not quite. say someone was searching my page on google and clicked on one of my linline frames rather then the page it is suposed to be displaying in. so all they are seeing is the content of the inline frome not the rest of the page. Does that make sence?
- unknown0
is this:
if (top.location != self.location) {
top.location = self.location
}it?
- steadyvibe0
i'd liek it to open the whole main page. not just the inline frmae.
- steadyvibe0
anyone else??
- unknown0
how about this.. http://www.i-way.co.uk/~sid/java… near the bottom
- jevad0
just stick this:
if (window == top)
{
top.location.href = "index.html";
}In all your inline or iframe pages.
Then when anyone hits any of those pages they will be redirected to index.html- or you can change that to whatever...