Solved

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

Posted on 2009-05-11
4
2,482 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

738 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