DelphiFAQ Home Search:

Opening a window without a title bar

 

comments4 comments. Current rating: 5 stars (2 votes). Leave comments and/ or rate it.

Question:

How can I open a window (popup) without a titlebar?

Answer:

(The following applies to Internet Explorer.)

The relevant parameter is fullscreen. A window in fullscreen has no title bar. If the document displayed in the popup shall not appear fullscreen (but still without title bar) then you can use the resizeTo command there (in the other document) to make it samller.

See the example and the other related tip.

<script language="JavaScript" type="text/javascript">
<!-- 
var w = window.open('http://www.yahoo.com/','','fullscreen=yes');
// -->
</script>

Comments:

2009-05-12, 01:18:15
mohib.ur.rehman@gmail.com from Pakistan  
rating
Hi there,
I tried the above solution, but it is not working. I mean both functionalities does npt work together , i.e. Fullscreen and resizeTo. i am using IE8 and i tried it in normal and compatablity mode, but it did not work. please guide me. here is my code:
master file:
<html>

<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>Open a popup without Title bar</title>
<script language='JavaScript' type='text/jscript'>
function openwindow(){
var w = window.open('my_new_opup_window.htm','test','fullscreen=yes,toolbar=0,location=0,directories=0,status= 0,menubar=0,scrollbar=0,scrollbars=0,resizabl, copyhistory=0');
}
</script>
</head>

<bt;body>
<a href='#' onclick='openwindow();return false;'> Open a popup without Title bar </a>
</body>

</html>


CALLED File:
<html>

<head>

<title>My new opup window</title>
<script language='JavaScript' type='text/javascript'>
function test(){
self.resizeTo(300,200);
}
</script>
</head>

<body onload='test()'>
<h1>My new opup window.</h1>
</body>

</html>
2009-08-27, 02:21:54
anonymous from India  
hello............

how r u ??????????????????????

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.