Menu
Is it possible to get the source code of a webpage and put it into a variable using Javascript? Here’s a simplification of what i want to be able to do:
[code]
<html>
<body>
<script type=”text/javascript”>
var newText = sourceCodeOf(“http://www.google.com”)
document.write(newText.length)
</script>
</body>
</html>
If it is possible to do this, how might the sourceCodeOf function work?