473,667 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Greying out 'View Source' in Browser Menu?

k
A programming the internet class has been asked if it is possible to
'grey out' the View Source option in a browser menu. Multiple
respondents think it is possible but not sure how to do it. I have
seen the 'Print' option greyed out at some sites...

Can you provide or recommend a specific way of achieving this?
Jul 23 '05 #1
4 2412
k wrote:
A programming the internet class has been asked if it is possible to
'grey out' the View Source option in a browser menu.


No, it isn't. I haven't heard of any way of doing this (not counting the bug
in IE which causes it to not work of the cache is full) for any browser,
let alone a cross browser solution.

http://dorward.me.uk/www/hide/

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #2
rf
k wrote:
A programming the internet class has been asked if it is possible to
'grey out' the View Source option in a browser menu.


Sounds like you need to get a new "teacher" for that class.

--
Cheers
Richard.
Jul 23 '05 #3
On Mon, 19 Jul 2004 04:19:38 -0700, k wrote:
A programming the internet class has been asked if it is possible to
'grey out' the View Source option in a browser menu. Multiple
respondents think it is possible but not sure how to do it. I have seen
the 'Print' option greyed out at some sites...

Can you provide or recommend a specific way of achieving this?


What's the point? In order for your browser to display the page it has to
download the page to your hard disk cache. You can view the source with
any text editor.

--
i.m.
The USA Patriot Act is the most unpatriotic act in American history.

Jul 23 '05 #4
k wrote:
A programming the internet class has been asked if it is possible to
'grey out' the View Source option in a browser menu.
(a). If its a class, you are being asked to think about it. What does it
mean by "browser"? Does it mean the small-footprint browser I wrote for
myself for fast-searching across multiple search engines? It is a real
enough browser - but it has no "view source" option at all.

So how would you "grey out" what does not exist?
Multiple respondents think it is possible but not sure how to do it.
I have seen the 'Print' option greyed out at some sites...

Challenge them to prove it. Then write your own using something simple
like the IE control in ActiveX... but don't put a "view source" option
on your browser either. Then ask them to show you their "method" using
MSIE, Firefox, Mozilla, Opera and Konqueror... then yours.
Can you provide or recommend a specific way of achieving this?


In case you have missed the point... there is no "standard style" for a
browser, there are no "standard menu options" and there are no "standard
control tools" either. It is not even remotely possible simply because
you have no idea whatsoever what the word "browser" means in this context.
Jul 23 '05 #5

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

Similar topics

5
7205
by: Pete Wason | last post by:
Hiall! I have a demo viewer page for javascript stuff that has three buttons "DEMO" "HTML" and "JSCR", and an IFRAME called 'viewer'. Initially, the IFRAME gets loaded with the actual demo page, ie., viewer.location = dName + '.html'; where dName is the filename of the demo without extension.
8
2884
by: Nancy | last post by:
Hi, Guys, I don't know why I can't view some webpages source code by click "View->Source" menu of Browser. These webpage source code can be viewed in same way by using other computers. My OS is Win Xp and Browser is IE6.0. I don't use any fire wall. Appreciate any hint. Nancy
4
1749
by: Jenny | last post by:
Hi, I can't use View, Source menu to open the source code of a page. I am using WinXP and IE 6. Here is the link: http://news.wenxuecity.com/BBSView.php?SubID=news&MsgID=21414 Could you try it? If you can't use View, Source menu to open the source code, could you help me to figure out why?
29
9768
by: lori3laz | last post by:
How do you disable the right click>view source option on web pages so people can't view your coding and copy it? What's the html I need to include in my website to utilize this feature? Thank you.
18
2542
by: Lorem Ipsum | last post by:
interesting! I just found a page in which Explorer's View Source does nothing! How did they do that?
8
2236
by: Alvo von Cossel I | last post by:
hey everybody, I have written a great browser but it is missing a feature (quite a lot actually, but forget about them for now). that feature just so happens to be the View > Source function. for those of you who don't what i mean, it is when you click a button in the view menu that says Page source (in Netscape) and source (in Internet Explorer). if you click it, notepad opens. in that window is the html for the page. anyway, does...
24
16079
by: Roman | last post by:
Hello to everybody, I have some question concerning blocking view source from main menu of IE or MF. I am able to block right click with <body oncontextmenu="return false"> but still missing from main View->Source Code. Any hints ? Regards, Roman
0
1387
by: Christian | last post by:
Hi all, i already posted this in dotnet.vb.controls but i need some help, so i cant wait... I have written a web control library and have some problems with it. The Library contains only two Controls: a menu bar and a menu item class which can have sub items (from the same class and type).
0
8457
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8365
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8788
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8563
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8646
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5675
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4200
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1778
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.