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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make popup window without the blue bar

Status
Not open for further replies.

TanTrazz

Programmer
Aug 18, 2001
54
NL
Hi all,


When i click a link i want the is a popup window without the blue bar with the title

if you don't get it check this one:

Then click on exterior pictures

It must be something like that

Tnx TanTrazz
 
this is actually a bug exploit in IE5 & 6 that people have called "chromeless" windows.

this does NOT work in IE6SP2 or ANY other browser...try Moz or NS...in fact it's worse for IE6SP2 now than Moz or NS since the window opens full screen.

i don't recommend using this technique, but it's achieved like so:

window.open("page.html","name","fullscreen=1");


=========================================================
while (!succeed) try();
-jeff
 
This is how I would do it:

code:
==============================================
<html>
<head>
<script>
// set the popup window width and height

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

// set the screen position where the popup should appear

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

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

var urlPop = &quot;Code_Punk.html&quot;

// set the title of the page

var title = &quot;This Is A Frameless Popup Window&quot;

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

var autoclose = true

// ============================
// do not edit below this line
// ============================

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

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

</script>
</head>
<body onload=&quot;top.window.focus()&quot;>

<a href=&quot;javascript:eek:penFrameless()&quot;>GO!</a>
===========================================

Hope this helps!

Code One
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top