Questions tagged [view-source]

view-source is an URL scheme that will display the source code of an url.

In FireFox, Sea Monkey, Google Chrome and up to Internet Explorer 6, prepending an url with view-source: will show the source code of the url. Due to security issues in Internet Explorer, the support for this URL Scheme was dropped with the release of Windows XP SP2.

86 questions
2
votes
0 answers

how to get a full html source?

my name is loran and i'm using asp.net - c# in my project. i'm trying getting the exactly html source from a facebook page: (http://www.facebook.com/search.php?q=loranzur%40yahoo.com). i'm trying to get the id number into a string variable (in the…
Loran Zur
  • 29
  • 3
2
votes
0 answers

How to hide an element from the source when it is hidden?

When using display: none you can still see the contents of the element in the source code. Is there a way to prevent this using JavaScript, PHP or some other approach?
Gitman
  • 41
  • 5
2
votes
2 answers

Add option to view source of current HTML page

I'm trying to add a link or button to my site where the user can see the source of the current page. No luck when tried the following: View Source Any other idea? Maybe with…
Moe E.
  • 31
  • 1
  • 5
2
votes
1 answer

How to Hide The Source

Okay, I am not sure if this question belongs here. Either way, I am interested to know how to show one source on Developer ➛ Page Source (Firefox) and totally another when CTRL+A on the page ➛ Inspect Element. I have seen it is done on some of the…
De1an
  • 248
  • 1
  • 14
2
votes
1 answer

Is there any way to hide the variables that are being passed to Flash by swfobject when someone views source?

I have some Flash swfs that are embedded using swfobject and I pass them some vars like user id. How do I prevent people from reading these vars? If someone views the source of the php page that embeds the swfs they can see all the variables that…
undefined
  • 4,770
  • 8
  • 52
  • 88
2
votes
4 answers

Can new elements inserted with javascript be seen with view-source?

My code is as follows: window.onload = initialise; function initialise() { var objPForSubmitMsg = document.createElement('p'); objPForSubmitMsg.setAttribute('class', 'submitmsg'); var arObjForms =…
Vlad
  • 730
  • 8
  • 28
1
vote
2 answers

Add-on to view javascript-generated source code?

I know it's possible to save as... and look at the html file and see all the classes generated by javascript, but I would love to know if there's a firefox (or other browser) add-on which will show me page source with the javascript generated…
inorganik
  • 21,174
  • 17
  • 78
  • 101
1
vote
0 answers

View Source & Google Chrome Extension Interaction

I currently have a Google Chrome extension that can read the dom of the page I am viewing, by accessing: document.documentElement.outerHTML I can then also get it to print elements of the dom to the console of the current page, extension and…
1
vote
5 answers

Freeware Plugin to View HTML source generated by ASP.NET?

Are there any freeware plugins that would help me view the HTML Source generated by ASP.NET?
sam
  • 4,388
  • 10
  • 56
  • 109
1
vote
2 answers

ColdFusion: Calling Components with AJAX, hide from view source?

I'm curious... I love the asynchronous calls with jQuery, but I don't want my components available to the public by view source... What is the recommended solution for this?
dcolumbus
  • 8,976
  • 25
  • 91
  • 154
1
vote
1 answer

Viewing source of .txt file in browser shows HTML tags

When I "view source" (using cmd-I )of google.com/robots.txt in Safari, Chrome or Firefox on a Mac, I see:
Where is the HTML…
Andrew Swift
  • 1,479
  • 2
  • 27
  • 46
1
vote
1 answer

How to execute content script in view-scource scheme?

I want to excecute content script in view-scource scheme. As in the content script match patter they didn't specified it. Anyone know how to do that?
1
vote
0 answers

Does the URI scheme "View Source" cause the browser to load the content of the page?

Would the URI Scheme "View source" cause the content of a page to be loaded by the browser? For example, typing in the address bar of Chrome view-source:https://www.google.com would show you the source code for google.com where as typing in…
user92592
  • 233
  • 1
  • 2
  • 8
1
vote
1 answer

Windows 10 bootmgr Help: viewing the source code

I am in a process of learning things in reverse order for fun, and I have decided to dissect Windows 10, bit-by-bit, and learn what makes a great OS function. And I also suppose that my question will be geared in other ways as well. My question is,…
1
vote
2 answers

Why does View Source issue a new HTTP request?

I've noticed that both Firefox and Chrome issue a new HTTP request when you view the source for a web page that you've already loaded. It's particularly annoying when the page itself is slow to load or if it won't load at all. Why is that? Wouldn't…
softvar
  • 16,589
  • 10
  • 48
  • 74