Save view source of HTML-file in the other file in my disk

Posted on 2001-06-06
Last Modified: 2010-04-09
How can I save view source of HTML-file on button click
in the same HTML-page in the other file in my disk?
Question by:tikal

Accepted Solution

nimaig earned 200 total points
ID: 6159162
You can use this code for View Source :

<script language="Javascript">
     function viewSource() {
          document.location  = "view-source:" + document.location.href
<form name="view">
<input type="button" name="source" onclick="viewSource()" value="View Source">
LVL 19

Expert Comment

ID: 6159265
And if you want to copy the source and use it somewhere else, you just need to select it and copy it.

Expert Comment

ID: 6374447
This question has been abandoned. Would the experts please indicate how
this should be closed out. Is there a comment which should be accepted?
Should the points be split? Should it be reduced to zero points and PAQed?
should it be deleted?  In the absence of direction, the default will be
for me to delete.

TIA for helping to clean up the old questions.

Community Support Moderator

LVL 53

Expert Comment

ID: 6519768
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

points to nimaig


If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.


Expert Comment

ID: 6521564
Awarding points to nimaig

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now