Solved

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

Posted on 2001-06-06
5
167 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Awarding points to nimaig
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

771 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

11 Experts available now in Live!

Get 1:1 Help Now