Solved

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

Posted on 2001-06-06
5
186 Views
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?
0
Comment
Question by:tikal
5 Comments
 
LVL 9

Accepted Solution

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


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

Expert Comment

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

Expert Comment

by:teacher_mod
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.

teacher_mod
Community Support Moderator
Experts-Exchange
teacher_mod@experts-exchange.com


0
 
LVL 53

Expert Comment

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

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

<recommendation>
points to nimaig

</recommendation>

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

Cd&
0
 
LVL 1

Expert Comment

by:kodiakbear
ID: 6521564
Awarding points to nimaig
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
compact pure CSS Read More Toggle 4 58
Could you point how to give Bootstrap's open/ close menu effect ? 25 51
Removing HTML elements using javascript 4 44
Html5 string 3 20
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

776 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