Solved

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

Posted on 2009-05-11
4
2,300 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
4 Comments
 
LVL 22

Accepted Solution

by:
prairiedog earned 125 total points
Comment Utility
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
Comment Utility
agreed. also depends on user's individual settings.
0
 
LVL 13

Assisted Solution

by:drypz
drypz earned 125 total points
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now