break out of frames.

wxdqz

New Member
I have a problem I can't figure out. I have a html page with this code in the head,

<script>

var windowW=214 // wide
var windowH=398 // high


var windowX = 260 // from left
var windowY = 100 // from top

// set the url of the page to show in the popup

var urlPop = "pbtv.html"

var title = "This Is A Frameless Popup Window"

// set this to true if the popup should close
// upon leaving the launching page; else, false

var autoclose = true

s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false

function openFrameless(){
if (beIE){
NFW = window.open("","popFrameless","fullscreen,"+s)
NFW.blur()
window.focus()
NFW.resizeTo(windowW,windowH)
NFW.moveTo(windowX,windowY)
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='http://www.webdeveloper.com/forum/archive/index.php/"+urlPop+"' scrolling=no>"+
"<frame name='bottom' src='http://www.webdeveloper.com/forum/archive/index.php/about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
NFW.document.open();
NFW.document.write(frameString)
NFW.document.close()
} else {
NFW=window.open(urlPop,"popFrameless","scrollbars,"+s)
NFW.blur()
window.focus()
NFW.resizeTo(windowW,windowH)
NFW.moveTo(windowX,windowY)
}
NFW.focus()
if (autoclose){
window.onunload = function(){NFW.close()}
}
}

</script>

then in the body i have a link to,

<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:openFrameless()">press here</a>

the next html page that opens has a swf file embeded into it at 100% x 100%. it opens in a full page(no scrollers no navagation, no nothing!) I believe it is a frameset. the swf file within that page is setup to go to the next url(html page) when the movie is done. what is happening is the next page is still in the full screen mode(frameset) What I want to happen is to have the next page load within it's self (don't want a new page to load up) with the scroller and navagation. breaking out of the frames(full screen) if anyone can help that would be great!!! i need to fix this desperatly!!!!!


Muehlman
 
Back
Top