473,549 Members | 2,543 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I use "menubar=no "

In JavaScript, I can hide menu bar
( ex)
<html>
<SCRIPT LANGUAGE="JavaS cript">
function Test()
{
var win =
window.open("te st2.html","sale ","menubar=no,s crollbars=no,wi dth=780,height= 5
40,top=0,left=0 ")
window.opener = "OPENER_IS_NOT_ NULL";
window.close();
}

</SCRIPT>
<body>
<input id="ttt" type="button" onClick="Test() ">
</body>
</html>

I want to adopt this in default.aspx.
So. In Browser, http://.../default.aspx --> menu bar is not displayed in
browser.

But I don't know this in asp.net.
Nov 18 '05 #1
2 5336
There are several ways to harness a button click to make it do client side
stuff. I show one way below. Not sure if this is responsive to your
question....

Private Sub Button1_Click _
(ByVal sender As System.Object, _
ByVal e As System.EventArg s) _
Handles Button1.Click
Dim sb As New System.Text.Str ingBuilder
sb.Append("<SCR IPT LANGUAGE=""Java Script"">")
sb.Append("{")
sb.Append("var win =")
sb.Append("wind ow.open('http://www.gc.ca','sal e',")
sb.Append("'men ubar=no,scrollb ars=no,")
sb.Append("widt h=780,height=54 0,top=0,left=0' );")
sb.Append("wind ow.opener = 'OPENER_IS_NOT_ NULL';")
sb.Append("wind ow.close();")
sb.Append("}")
sb.Append("</SCRIPT>")
Literal1.Text = sb.ToString
End Sub

<form id="Form1" method="post" runat="server">
<P>
<asp:Button id="Button1" runat="server" Text="Click
Me"></asp:Button></P>
<P>
<asp:Literal id="Literal1" runat="server"> </asp:Literal></P>
</form>

Ken
MVP [ASP.NET]

"edgarjang" <ed*******@msn. com> wrote in message
news:uM******** ******@TK2MSFTN GP10.phx.gbl...
In JavaScript, I can hide menu bar
( ex)
<html>
<SCRIPT LANGUAGE="JavaS cript">
function Test()
{
var win =
window.open("te st2.html","sale ","menubar=no,s crollbars=no,wi dth=780,height= 5
40,top=0,left=0 ")
window.opener = "OPENER_IS_NOT_ NULL";
window.close();
}

</SCRIPT>
<body>
<input id="ttt" type="button" onClick="Test() ">
</body>
</html>

I want to adopt this in default.aspx.
So. In Browser, http://.../default.aspx --> menu bar is not displayed in
browser.

But I don't know this in asp.net.


Nov 18 '05 #2
I'm not sure there is some tricky tips for your request but usually you
cannot hide/show layout components (menu, toolbar...) of current web browser
(which currently contain your web page).

There is simple way (but annoy visitor), put window.onload method in your
default.aspx, which open other window with menubar=0, which is second
default page e.g. default2.aspx (using window.open) and then close current
window (which contain default.aspx).

Tiendq,
ti**@tienonsoft ware.com

"edgarjang" <ed*******@msn. com> wrote in message
news:uM******** ******@TK2MSFTN GP10.phx.gbl...
In JavaScript, I can hide menu bar
( ex)
<html>
<SCRIPT LANGUAGE="JavaS cript">
function Test()
{
var win =
window.open("te st2.html","sale ","menubar=no,s crollbars=no,wi dth=780,height= 5 40,top=0,left=0 ")
window.opener = "OPENER_IS_NOT_ NULL";
window.close();
}

</SCRIPT>
<body>
<input id="ttt" type="button" onClick="Test() ">
</body>
</html>

I want to adopt this in default.aspx.
So. In Browser, http://.../default.aspx --> menu bar is not displayed in
browser.

But I don't know this in asp.net.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2764
by: Michael Stevens | last post by:
Probably the wrong wording but since I'm not a scripter I won't claim to know what I'm talking about. I got this script from www.htmlgoodies.com <script language="JavaScript"> <!-- window.open ('photos01.html','photogallery',config='height=550, width=750,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no,...
2
9785
by: Chuck Martin | last post by:
I am having a most frustrating problem that references, web searches, and other resources are no help so far in solving. Basically, I'm trying to design a pop-up window to be called with a funciton in a link. that function can have parameters for URL and window name passed to it. This works peachy in Firefox (1.0). With IE 6 (6.0.29) on two...
1
1546
by: Chris | last post by:
Morning, This is my problem, I try to pass in url parameter yop.php the PID value, computed in "select", but when I execute this script, I obtain "this.PID" in all letters in URL instead of the number. I research but I don't find, Could you please help me? Thanks, This is an exemple of my source code:
21
3328
by: Evan Sussman | last post by:
Could any one give me an explenation of this error? I get it every once in a while, and it really is a pain. currently the code that I'm working with goes like this <script> <!-- var newwindow; function moviepopup(url) {
7
1997
by: MLH | last post by:
Is there any case you can imagine that A97 would NOT display the Unhide option under the Window menu after running this line... Me.Visible = False Yes, its happening to me. The Unhide choice is grayed out after running this line on a form that was opened with the acDialog parm. Guys, this wierd stuff I'm encountering, could some hardware...
2
5469
by: GD | last post by:
I have an ImageButton in a Repeater, and in the Repeater's OnItemDataBound event, I'd like to add some code that will let the ImageButton open a URL in a new window. This is what I have in my Repeater's OnItemDataBound event: ImageButton oImageButton = ((ImageButton)e.Item.FindControl("ibtnNewWindow")); string sUrl =...
3
4620
by: gouthami | last post by:
I have a tree Node in my application and i have set the following code in the NavigateUrl property of the tree node. Please see my code below (which is present in my 'code behind' c# file). My requirement is to open a new window (.aspx page) on clicking a tree node (Menu) with out status bar, address bar etc. TreeNode parentNode = new...
1
6956
by: Ronen Yacov | last post by:
Hi There, I've using IE 7.0.5730.11 on Windows XP. I want to open a pop up using javascript without showing the status bar, and to do so I use the function: function openwindow() { window.open("http://www.javascript- coder.com","mywindow","menubar=1,resizable=1,status=no,width=350,height=250"); }
3
4292
by: blackrunner | last post by:
ERROR in my Query?! ERROR: Element GESCHLECHT is undefined in FORM. i think everything ok. Maby somebody can help me here Element GESCHLECHT is undefined in FORM. The error occurred in \anmeldung2.cfm: line 404
0
7971
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7491
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7823
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5101
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3491
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1068
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.