?
Solved

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

Posted on 2009-05-11
4
Medium Priority
?
2,592 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 375 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:Kelvin McDaniel
Kelvin McDaniel earned 375 total points
ID: 24359284
agreed. also depends on user's individual settings.
0
 
LVL 13

Assisted Solution

by:drypz
drypz earned 375 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 375 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

771 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