Topic: window/(popup window) without menu and buttons

Can anyone tell me how to create a window without menu or buttons(even in titlebar)
if there is only close button, then okay.

I need in javascript + html / php...

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily

2 (edited by Juan.Llanos 2004-07-26 09:24)

Re: window/(popup window) without menu and buttons

You need to do it with javascript....

What I do it's a file xxxx.js

function openwin_min(url)
{
  if( window.open(url,'','left=0,top=0,height=150,width=400,scrollbars=no,
 status=no,menubar=no,location=no,resizable=no') ) 
    return false; 
  else 
    return true;
}

Look at height and width, you have to change it...  the link with "status..." it't in the same line that the other... I put in a different line, because it's too long to the forum.

I add this file to the html file:
<script src="xxxxx.js" type="text/javascript"></script>

Then the link it's:
<a href="LINK" onclick="return openwin_min(this.href)">link</a>

Just look again to LINK to change it,




Plese, don't abuse of popup, people hate it...

Re: window/(popup window) without menu and buttons

My dear friend, sorry for not breifing my question...

I too know that we can use javascript. but I dont want that traditional window. (here you will get an icon at the left cornor, and a title, and minimise,maximise, close buttons)

I dont want any of those. just a plain window with a close button at the top cornor.

Thanks for yor efforts.

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily

Re: window/(popup window) without menu and buttons

Im not sure if this will help i just kinda seen it but didnt read alot of it http://www.programmersheaven.com/search … mp;ID=8473

5

Re: window/(popup window) without menu and buttons

So you whant a chrome less window? Look around at dynamicdrive and on hotscripts.

Do, or do not.

Re: window/(popup window) without menu and buttons

http://www.dynamicdrive.com/dynamicinde … meless.htm

Re: window/(popup window) without menu and buttons

WOW! its really good. (Exactly chromeless)

Thanks to all

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily