Webpage Source Code Snippets


How to display the source code of any webpage. you can use below example code

25 March, 2012   

when clicked on button it will open your source code

17 April, 2013   

This code only works in Firefox and Chrome

09 November, 2017   

Copies Source file to Dest file, preserving modification date. Required units: Classes, SysUtils.

11 April, 2013   

Pull external HTML code from a file right into your webpage

06 March, 2012   

An example code for JavaScript Random Quotes

How to Insert comments in the HTML source code

16 June, 2012   

You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites with full page ads, or to redirect visitors to the site's new domain name. You can add also a timer to the script that will allow the page to redirect and the visitors will not need to click a link or type in the new URL.

01 February, 2011   

Missing images will either just display nothing, or display a [ ? ] style box when their source cannot be found. Instead you may want to replace that with a "missing image" graphic that you are sure exists so there is better visual feedback that something is wrong. Or, you might want to hide it entirely. This is possible, because...

17 February, 2019   

Missing images will either just display nothing, or display a [ ? ] style box when their source cannot be found. Instead, you may want to replace that with a "missing image" graphic that you are sure exists so there is better visual feedback that something is wrong. Or, you might want to hide it entirely. This is possible because...

22 March, 2015   

Program shows copying one text file from source location to any other location (destination), plus possibility of changing its name, and also shows many language features in exception handling. This program should be run from the command prompt

Print variables with file and line number for debugging source code

Source code by Maganti Venkatesh for another way to swap 2 numbers

Using a stored procedure as the source in an OLE_DB Source for SSIS, the package can’t detect the output of the stored proc.

12 January, 2013   

Search the source code of all stored procedures.

20 July, 2013   

Source code for Flash XHTML valid

C++ source code for Fahrenheit to celsius conversion

Example source code for function pointer to member function of class

09 January, 2013   

Better way to handle Broken Image. Missing images will either just display nothing, or display a [ ? ] style box.

27 February, 2012   

An example C++ code for Font dialog demo