Hi,
Thanks for the reply.
I am using server side (as.net control, not just the anchor tag from
html) hyperlink control in my application.
And...."navigateURL" property for this hyperlink is set dynamically in
my code behind page.
In such scenario....how can I open a new window w/o scroll bars,
toolbar, status bar etc...?
<asp:HyperLink
Runat="server"
ID="lnkOpenWindow"
Text="Open window" />
and then on Page_Load
lnkOpenWindow.NavigateUrl = "nojs.html";
lnkOpenWindow.Attributes[ "onclick" ]
= "window.open( '
http://www.galasoft-lb.ch', 'popUpName', "
+ "'width=500,height=300,screenX=50,screenY=100,left=50,top=100');"
+ "return false;";
This will open a new window without any chromes if JavaScript is
enabled. screenX and screenY are for Mozilla, left and top are for IE,
so both must be set.
If JavaScript is disabled, this navigates to a page named nojs.html
where you can explain why the user experience is so much better with
JavaScript ;-)
Also: this works because the default value for chromes (status bar,
location bar, etc...) is set to "no". If you want to show only the
status bar, for example, you must set it explicitly to "yes".
See
http://developer.mozilla.org/en/docs/window.open
for details.
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering:
http://www.galasoft-LB.ch
Private/Malaysia:
http://mypage.bluewin.ch/lbugnion
Support children in Calcutta:
http://www.calcutta-espoir.ch