 |
| ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

December 11th, 2006, 05:32 AM
|
|
Authorized User
|
|
Join Date: Nov 2006
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
how to hide IE's addressbar, toolbar and menubar?
hi all.
i have an aspx page and want when client opens it, address bar, menu bar, statusbar and toolbar of the client's browser become hidden and also i want to be able to set the size of browser.
please help me.
|
|

March 29th, 2007, 08:56 AM
|
|
Registered User
|
|
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi
Has anyone resolved this as I am interested in doing the same
<SamP>
|
|

March 29th, 2007, 09:00 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
Hiding the toolbars can not be done server side; you will need some sort of ActiveX control that will hide these elements.
Setting the size of the browser window can be done through Javascript.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
|
|

April 9th, 2007, 11:34 PM
|
|
Registered User
|
|
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
JavaScript
<script language=javascript>
function openpage(htmlurl)
{
var newwin=window.open(htmlurl,"newWin","toolbar=no,lo cation=no,directories=no,status=no,scrollbars=yes, menubar=no,resizable=yes,top=100,left=200,width=65 0,height=300");
newwin.focus();
return false;
}
</script>
|
|

April 10th, 2007, 12:48 AM
|
|
Authorized User
|
|
Join Date: Nov 2006
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Good One... It has worked..
|
|

April 12th, 2007, 06:32 AM
|
|
Authorized User
|
|
Join Date: Dec 2006
Posts: 36
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Hi,
Will any popup blocker block the above code?
---
Best regards,
Debashis
|
|

April 12th, 2007, 09:02 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
I have found that code like that gets blocked by popup blockers if it's executed automatically/immediately. For example if it's called by the body.onLoad event. However, when called "manually" by a user click event, it may not get blocked. You'll have to experiment to see for sure, and different blockers will likely work differently.
- Peter
|
|
 |