Вот есть хтмл:
<html>
<head>
<title>Тест</title>
</head>
<body>
<div id="div1">
<form name="form1" id="form1" method="GET" action="test.php">
<input type="text" name="text1" id="text1" value="something">
<input type="button" name="button1" id="button1" value="send">
</form>
</div>
<script type="text/javascript">
var a=document.getElementById("div1");
alert(a);
</script>
</body>
</html>
Как сделать чтобы алерт выводил:
"<form name="form1" id="form1" method="GET" action="test.php">
<input type="text" name="text1" id="text1" value="something">
<input type="button" name="button1" id="button1" value="send">
</form>"?