Click to See Complete Forum and Search --> : new question... is it possible to write a script for this ?


2 peachy
05-19-2003, 10:13 PM
JavaScript statement that could be added to any html page, such that it would prevent the html page from being loaded into a child frame making it so the page would always be loaded into the top window.
if so, how is it done ?

AdamBrill
05-19-2003, 10:15 PM
Put this in the head of the page:<script language=javascript type="text/javascript">
top.location=document.location;
</script>

2 peachy
05-19-2003, 10:26 PM
wow, its that easy...smiles!!!...
thankyou so much

peachy

2 peachy
05-19-2003, 11:28 PM
Thankyou Dave... how long have you been doing JavaScript ?
you certainly are very good at it

2 peachy
05-19-2003, 11:35 PM
wow only three years ... with as good as you are, would have guessed a lot longer.
I have only been trying it for about three or four months now... and still get confused everytime...

AdamBrill
05-20-2003, 07:11 AM
Thanks for correcting me, Dave... I totally forgot about that... :) I haven't been doing it as long as you, though. ;)