У меня есть HTML с кодом JavaScript, который изменяет HTML и печатает данные,
и я хочу сбросить эту страницу в файл.
<html>
<head>
<script type="text/javascript">
document.write("<h1>This is a heading one </h1>");
document.write("<p>This is a paragraph.</p>");
document.write("<p>This is another paragraph.</p>");
</script>
</head>
<body>
<h1>This is a heading two </h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
output.html
<html>
<head>
<script type="text/javascript">
document.write("<h1>This is a heading one </h1>");
document.write("<p>This is a paragraph.</p>");
document.write("<p>This is another paragraph.</p>");
</script>
</head>
<body>
<h1>This is a heading one </h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<h1>This is a heading two </h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
Я думаю, что мне нужно что-то вроде html + java script engine .. браузер с интерфейсом командной строки, чтобы я мог вызвать страницу и затем вывести ее вывод в файл ..
любые идеи ?? ... любая помощь будет оценена, спасибо