Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load page instead of frame?

Status
Not open for further replies.
May 21, 2002
19
0
0
US
I have this code on a page that opens in a frame. Is there a way to force it to open as a full page instead of in the frame.


window.location.href = '../accessviolation.htm';
}
}

//--></SCRIPT>
</HEAD>

<BODY onLoad=&quot;get()&quot;>
 
Try to use this code in ../accessviolation.htm.
Code:
<script language=&quot;JavaScript&quot;>
	if (self.parent.frames.length != 0)
	self.parent.location=&quot;./accessviolation.htm&quot;;
</script>
 
Thanks,

I just found that this works too...


window.top.location.href = '../accessviolation.htm';
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top