blow away the frameset

Results 1 to 3 of 3

Thread: blow away the frameset

  1. #1
    Dieter Guest

    Default blow away the frameset

    I have a non-frameset home page, I do not want someone to load my page to their frameset.<BR> <BR>How would I blow away someone&#039s frameset if they attempted to load my home page into their framset?<BR><BR>Thanks for any help.<BR><BR><BR>

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default Use an AK 47

    what are you talking about. WHO will load your home page into THEIR frameset<BR><BR>I really dont understand your problem

  3. #3
    Howie M. Guest

    Default RE: blow away the frameset

    This works for IE 5.0. I haven&#039t tested anything else<BR><BR>&#060;script language="javascript"&#062;<BR>&#060;!--<BR>// This function will try to redirect the called page into the topmost frame<BR>// and start the topmost frame. It&#039s wrapped in a function because IE3 doesn&#039t<BR>// like the usage of the &#039this&#039 keyword outside a function.<BR><BR> function redirectToTopmostFrame() {<BR> if (this != top) {<BR> top.location = "yourpagehere.htm";<BR> }<BR> }<BR>redirectToTopmostFrame();<BR>//--&#062;<BR>&#060;/script&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts