473,320 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

JavaScript Window.open()

hai every one iam opening an window through javascript
[removed email]

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript" language="javascript">
  2.         var k=false;
  3.  
  4.         window.open("main.aspx","","status=no,fullscreen=yes");
  5.         window.resizeTo(1,1)
  6.         k=true;
  7.         window.onresize = function()
  8.         {
  9.            if(k==true)
  10.            { 
  11.                 window.opener="s";
  12.                 window.close(); 
  13.            }
  14.         } 
  15.    </script>  
  16.  
  17. </head>
  18. <body onload="javascript:window.opener='x';window.close();" >  
  19. </body>
  20.  
it works perfect with fullscreen mode even without titlebar where in if hosted in an server and accessing via tcp/ip network its opening with titlebar and not in full screen can any one say solution for this or any setting to be made in server?
Sep 19 '08 #1
5 2591
Hi this could be a solution to your code:

Sometimes if you are giving fullscreen does not works better assign the window attribute in this manner.

This is working in all environment with server


[HTML]<html>
<head>
<title>Whatever You like</title>
<script language="JavaScript">
function openWin() {
var maxWindowWidth = screen.width - 10;
var maxWindowHeight = screen.height - 76;
var a=window.open("name of the page you want to open","_blank","top=0,left=0,menubar=0,titlebar=0, toolbar=0,status=1,resizable=no,height=" + maxWindowHeight + ",width=" + maxWindowWidth);
a.focus();
window.opener = null;
window.close();
}
</script>
</head>
<body onload="openWin()"><br><br><br><br><br><br><br><br ><br>
<center><a class="my desire" href="javascript:openWin</a></center>
</body>
</html>[/HTML]
Sep 19 '08 #2
acoder
16,027 Expert Mod 8TB
Please use code tags when posting code. I have removed the email from your post. Posting of email addresses is against the site rules. See unacceptable things.

Note that fullscreen is not supported any longer even in IE.
Sep 20 '08 #3
But same problem exists. Even with ur code i am getting title bar.
Sep 25 '08 #4
If you are opening the window in IE +4 then its guarantee with the above code that it will not show any toolbar.Please if possible post the rectified code which you are using or which is creating the problem.
Sep 25 '08 #5
acoder
16,027 Expert Mod 8TB
It will usually show the title bar though. See, for example, Note on Fullscreen.
Sep 25 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.