Click to See Complete Forum and Search --> : How do I popup a frameless window?


jammer20002
09-10-2003, 08:39 AM
Can someone tell me how to popup a frameless window?

OK! So it's the simplest thing in the world.
I've tried getting the code form other websites where you get a popup window... and I've tried looking through the source code on Javascript.com... everything seems to be too confusing...!

All I want to do is pop up a window of a fixed size with no borders!

How do I do this?

Thanks.


Jam

p2bc
09-10-2003, 09:22 AM
<head>
<script type="text/javascript">
function openwindow(url){
NewWindow=window.open(url,'newWin','width=500,height=300,left=20,top=20,toolbar=No,location=No,scrol lbars=no,status=No,resizable=no,fullscreen=No'); NewWindow.focus(); void(0); }
</script>
</head>



<a href="website" onclick="openwindow(this.href); return false;">Link</a>


That is it.
For any features you want, change from "no" to "yes" in the script. And the width aand height to the size you want the window to be.

Chance :website to the location you want the link to take you, and the work "link" to the word you want the people to see and click on to take them to your new site.

jammer20002
09-10-2003, 09:38 AM
Thanks for that - just what I needed. :)

WHat does the void(0) do?

And I'm not sure what you mean by:

'Chance :website to the location you want the link to take you, and the work "link" to the word you want the people to see and click on to take them to your new site.'

Please explain.

Thanks.

p2bc
09-10-2003, 10:03 AM
I should reread my posts before submitting.

Change the word Website to "http://www.whatever.com"
And the word link to the word you want people to click on

Example:

The word I click (http://forums.webdeveloper.com/newreply.php?s=&action=newreply&threadid=17181) on.

In this case the word is "click"

The word "void" is not directly relevant in your case, this is a general script for a pop up, you turn things on or off as you need them. Either by changing to "yes", or to "1".

In truth you could delete them, but like I said, there is no harm in leaving them, as long as they are off. And it is good practice because you can always call the same script for something else when ever you want in your page which might need those feature. But if they are deleted rather than turned off, you have to right a whole new script for that new application.

Hope this clear thing up.

96turnerri
09-10-2003, 11:08 AM
i wasnt going to point out that mistake, i was waiting for you to pick it, new you would, im the same dont read before posting lol

thesavagefiles
08-15-2006, 08:42 AM
Is it possible to open a 'completely frameless' popup window containing an image ie. without even the titlebar.

So far, the only way I have found to do this is with what seem to be called 'tooltips'. But the tooltips require a lot of code, including three extra js pages, and becomes a bit complicated if you want to use it in several places on one page.

Does anyone know of a relatively simple way for me to have frameless images popup onclick and automatically close onmouseoff?

Cheers,
Steve

felgall
08-15-2006, 03:24 PM
It is NOT possible to remove the title bar as that is part of the window as defined by the operating system. To open a window without a titlebar you need to run the code on an operating system that uses windows without titlebars.

thesavagefiles
08-17-2006, 02:38 AM
I've found just the thing I need, and can't understand why nobody pointed me towards this type of thing in the first place.

See http://www.walterzorn.com/tooltip/tooltip_e.htm#download

Cheers,
Steve

felgall
08-17-2006, 04:02 AM
Because that wasn't what you were asking about. You were asking about popup windows not about tooltips. They are two completely different things and we can't read your mind to realize that you asked about the wrong thing and really meant something else.

thesavagefiles
08-17-2006, 04:13 AM
Thanks. I thought I was quite clear.

Is it possible to open a 'completely frameless' popup window containing an image ie. without even the titlebar.

So far, the only way I have found to do this is with what seem to be called 'tooltips'.