I would like to select all the source code of a occur page thanks to select_and_copy.js JavaScript and copy/past it into the <textarea> of the same page.
Example of page:
- Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="select_and_copy.js"></script>
</head>
<body>
<h1>Ma page</h1>
<p><textarea name="message" rows="30" cols="80"></textarea></p>
</body>
</html>
I precise I don't want to do that by downloading again the source code. I would like to copy/past the current source code of a loaded page, not download the same page again.
Thanks for help and happy new year


