Hi all
A couple of questions which I can imagine have been covered before, but I for which I cant seem to find clear answer for.
The code below seems fairly standard and is posted all over the net.
It checks to see if a page is in a framed enviroment when opening and if not is redirected to open the parent url.
Im trying without success for it to go one step further – If page detects it is not in framed environment open parent framed url AND open in the correct frame!
<SCRIPT LANGUAGE=”JavaScript”>
<!– Hide script from older browsers
function changePage() {
if (self.parent.frames.length == 0) self.parent.location=”main frameset url”;
}
changePage();
// end hiding contents –>
</SCRIPT>
Any simple cross browser solutions?
Also as you may have guessed I’m not that familiar with Javascript and being an old fashioned programmer I like to have a comprehensive resource of a languages syntax/functions/methods etc etc. to work with.
Self.parent.frames.length or height or width or who knows ….. ….. where does all this come from, where can I see, in one resource, ALL the language, in a clear, concise way. Any help on this would be great!
Thanks
Adaman