J
John
I have several domains johntexas.com, jonstexas.com, etc. that I redirect to
johnstexas.com. I got some code to pop me out of frames when this happens:
<script language = javascript type = "text/javascript">
<!-- hide from older browsers
if (top.location != self.location) {
top.location = self.location;
}
// end script hiding -->
</script>
and I modified it to put a message there when this happens:
<script language = javascript type = "text/javascript">
<!-- hide from older browsers
if (top.location != self.location) {
document.write('You have entered johntexas.com, jonstexas.com, jontexas.com
or johnseeliger.name and been redirected to johnstexas.com. This is not an
error.');
top.location = self.location;
}
// end script hiding -->
</script>
but it does not work. Am I doing it wrong?
Thanks,
-John
johnstexas.com. I got some code to pop me out of frames when this happens:
<script language = javascript type = "text/javascript">
<!-- hide from older browsers
if (top.location != self.location) {
top.location = self.location;
}
// end script hiding -->
</script>
and I modified it to put a message there when this happens:
<script language = javascript type = "text/javascript">
<!-- hide from older browsers
if (top.location != self.location) {
document.write('You have entered johntexas.com, jonstexas.com, jontexas.com
or johnseeliger.name and been redirected to johnstexas.com. This is not an
error.');
top.location = self.location;
}
// end script hiding -->
</script>
but it does not work. Am I doing it wrong?
Thanks,
-John