Solved

How to open a new page without aDDRESS bAR in ASP.NET?

Posted on 2009-05-11
4
2,520 Views
Last Modified: 2012-08-13
I used the function in code part to open a new web page without menu bar and too bar and it worked.
But I'd like to hide the Address Bar too.

Would you please tell me how to hide or disable Address Bar?
Is it possible?
<script type="text/javascript">
function openPopUp(u,w,h)
{
  fwnd = window.open(u, 'PopWindow',"width="+ w + ",height=" + h + directories=no,location=yes,menubar=no," + "resizable=yes,status=yes,titlebar=yes,toolbar=no,scrollbars=yes");
  fwnd.focus();
}
</script>

Open in new window

0
Comment
Question by:Elham_Seif
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 22

Accepted Solution

by:
prairiedog earned 125 total points
ID: 24358890
change location=no will hide address bar in IE, but not in FireFox. So I would say it is not possible to hide the address bar for all browser.
0
 
LVL 11

Assisted Solution

by:azarc3
azarc3 earned 125 total points
ID: 24359284
agreed. also depends on user's individual settings.
0
 
LVL 13

Assisted Solution

by:drypz
drypz earned 125 total points
ID: 24360692
Hi! I suggest you can put your page that you don't want to view the address inside a Frame.
0
 
LVL 3

Assisted Solution

by:sandip-mishra
sandip-mishra earned 125 total points
ID: 24362632
hi...

in mozilla browser you cannot hide the location bar

<script type="text/javascript">
function openPopUp(u,w,h)
{
fwnd = window.open(u, 'PopWindow',"width="+ w + ",height=" + h + directories=no,location=no,menubar=no," + "resizable=yes,status=yes,titlebar=yes,toolbar=no,scrollbars=yes");
fwnd.focus();
}
</script>

if you want to call the function from the .cs page, use the following code .........


String strWindowOpen = @"<script language='javascript' type='Text/JavaScript'>";
strWindowOpen += "openPopUp( "+paramrters1 + "," +parameter2 + "," + parameter3 + ");";
strWindowOpen += "</script>";
Page.RegisterStartupScript("PopupScript", strWindowOpen);

Thanks

sandip-mishra
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question