/    Sign up×
Community /Pin to ProfileBookmark

How do I popup a frameless window?

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

to post a comment
HTML

9 Comments(s)

Copy linkTweet thisAlerts:
@p2bcSep 10.2003 — <i>
</i>&lt;head&gt;
&lt;script type="text/javascript"&gt;
function openwindow(url){
NewWindow=window.open(url,'newWin','width=500,height=300,left=20,top=20,toolbar=No,location=No,scrollbars=no,status=No,resizable=no,fullscreen=No'); NewWindow.focus(); void(0); }
&lt;/script&gt;
&lt;/head&gt;


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


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.
Copy linkTweet thisAlerts:
@jammer20002authorSep 10.2003 — 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.
Copy linkTweet thisAlerts:
@p2bcSep 10.2003 — 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 [url=http://forums.webdeveloper.com/newreply.php?s=&action=newreply&threadid=17181]click[/url] 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.
Copy linkTweet thisAlerts:
@96turnerriSep 10.2003 — 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
Copy linkTweet thisAlerts:
@thesavagefilesAug 15.2006 — 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
Copy linkTweet thisAlerts:
@felgallAug 15.2006 — 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.
Copy linkTweet thisAlerts:
@thesavagefilesAug 17.2006 — 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
Copy linkTweet thisAlerts:
@felgallAug 17.2006 — 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.
Copy linkTweet thisAlerts:
@thesavagefilesAug 17.2006 — 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'. [/QUOTE]
×

Success!

Help @jammer20002 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...