Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2009-05-11
4
Medium Priority
?
2,688 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
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 …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

609 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