Emuvente
10-18-2003, 03:35 PM
I need a script that will change the location of a frame depending on what the parent location is. I made a script:
<script language="javascript">
<!--
if (parent.location == null) {
self.location.replace("none.html")
}
// -->
</script>
but it didn't work. it stayed at the page it was at instead of changing, and when I used this:
<script language="javascript">
<!--
if (parent.location != "CHYF.html") {
self.location.replace("none.html")
}
// -->
</script>
(CHYF.html is the parent) it always went to the none.html page. any ideas how I can make this work?
<script language="javascript">
<!--
if (parent.location == null) {
self.location.replace("none.html")
}
// -->
</script>
but it didn't work. it stayed at the page it was at instead of changing, and when I used this:
<script language="javascript">
<!--
if (parent.location != "CHYF.html") {
self.location.replace("none.html")
}
// -->
</script>
(CHYF.html is the parent) it always went to the none.html page. any ideas how I can make this work?