Connecting Tech Pros Worldwide Help | Site Map

How to disable a menu item in browser

  #1  
Old August 16th, 2006, 10:25 PM
Nemo
Guest
 
Posts: n/a
Hello Guys,
Can somebody tell me how I can disable a menu item such as "save as" in the
Internet Explorer or Netscape using Javascript. Thanks.
Nemo


  #2  
Old August 16th, 2006, 11:45 PM
David Dorward
Guest
 
Posts: n/a

re: How to disable a menu item in browser


Nemo wrote:
Quote:
Can somebody tell me how I can disable a menu item such as "save as" in
the Internet Explorer or Netscape using Javascript.
You can't.

--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
  #3  
Old August 17th, 2006, 12:25 PM
Nemo
Guest
 
Posts: n/a

re: How to disable a menu item in browser


Then how they do that becasue I have seen this, is there another way or
another script like VB?

"David Dorward" <dorward@yahoo.comwrote in message
news:ec077s$4pu$1$8302bc10@news.demon.co.uk...
Quote:
Nemo wrote:
>
Quote:
Can somebody tell me how I can disable a menu item such as "save as" in
the Internet Explorer or Netscape using Javascript.
>
You can't.
>
--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is

  #4  
Old August 17th, 2006, 01:45 PM
RC
Guest
 
Posts: n/a

re: How to disable a menu item in browser


Nemo wrote:
Quote:
Hello Guys,
Can somebody tell me how I can disable a menu item such as "save as" in the
Internet Explorer or Netscape using Javascript. Thanks.
Nemo
>
>
No, you can't remove a menu item from a menu.
But you can eliminate the all menu.
Try

window.open("yourFile.html", "targetNewWindow",
"toolbar=no,location=0,directory=no,status=no,menu bar=0,scrollbars=no,resizable=0,copyhistory=0,widt h=200,height=200");
  #5  
Old August 17th, 2006, 02:25 PM
Randy Webb
Guest
 
Posts: n/a

re: How to disable a menu item in browser


RC said the following on 8/17/2006 8:53 AM:
Quote:
Nemo wrote:
Quote:
>Hello Guys,
>Can somebody tell me how I can disable a menu item such as "save as"
>in the
>Internet Explorer or Netscape using Javascript. Thanks.
>Nemo
>>
>>
>
No, you can't remove a menu item from a menu.
But you can eliminate the all menu.
Try
And then wonder why it doesn't remove the toolbars?
Quote:
window.open("yourFile.html", "targetNewWindow",
"toolbar=no,location=0,directory=no,status=no,menu bar=0,scrollbars=no,resizable=0,copyhistory=0,widt h=200,height=200");
Control-N

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
  #6  
Old August 17th, 2006, 02:45 PM
RC
Guest
 
Posts: n/a

re: How to disable a menu item in browser


Randy Webb wrote:
Quote:
>
And then wonder why it doesn't remove the toolbars?
Then try

"toolbar=0,location=0,directories=0,status=0,menub ar=0,scrollbars=0,resizable=0,copyhistory=0,width= 500,height=200"

It works for me in FF, NS and IE.
  #7  
Old August 17th, 2006, 04:45 PM
Randy Webb
Guest
 
Posts: n/a

re: How to disable a menu item in browser


RC said the following on 8/17/2006 9:55 AM:
Quote:
Randy Webb wrote:
>
Quote:
>>
>And then wonder why it doesn't remove the toolbars?
>
Then try
>
"toolbar=0,location=0,directories=0,status=0,menub ar=0,scrollbars=0,resizable=0,copyhistory=0,width= 500,height=200"
>
>
It works for me in FF, NS and IE.
Try it in IE7.
Try it in Opera.
Try it in FF with the user.js file edited:

user_pref("dom.disable_window_open_feature.toolbar ", true);

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
  #8  
Old August 17th, 2006, 11:15 PM
David Dorward
Guest
 
Posts: n/a

re: How to disable a menu item in browser


Nemo wrote:

Please do not top post.
Quote:
Then how they do that becasue I have seen this
Where?


--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
  #9  
Old August 18th, 2006, 01:35 PM
Nemo
Guest
 
Posts: n/a

re: How to disable a menu item in browser


David,
I'll try to find it, I have seen a webpage that when I tried to save using
"Save as ...", the menu was disabled, I do not remember if they opened a new
window.
Regards

"David Dorward" <dorward@yahoo.comwrote in message
news:ec2pr2$q0f$1$8302bc10@news.demon.co.uk...
Quote:
Nemo wrote:
>
Please do not top post.
>
Quote:
Then how they do that becasue I have seen this
>
Where?
>
>
--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Intercept the Print message in C# =?Utf-8?B?QnJ5YW4=?= answers 3 November 12th, 2008 12:25 PM
Viewstate issues after move to 2.0 from 1.1 Robert answers 10 November 25th, 2005 06:25 AM
Top Drop Down Menu for IE that can overlay IE combo box and has fading effect Yuk Cheng answers 4 July 23rd, 2005 01:18 PM
How to disable the right mouse button on images (Opera) Lijun Yang answers 4 July 20th, 2005 10:49 AM