Hi,
I'm working in a framed environment, and trying to tell if the frame on which some javascript code executes is the top frame (the one that contains the rest).
Up until now I was trying to check it with
window.parent !=null
but it always returns false, like in this simple example.
<html>
<head>
<script>
alert(parent == null);
</script>
</head>
<body>
<h1> OH YEAH!</h1>
</body>
</html>
Is there a way to do this? Doesnt have to be portable, right now i'm looking for the IE6 solution.
Thanks in advance.