Hello, first, I'm new here and I hope you can help me
The problem is that I'm making a script and I need to have the information of a website on the script which is in a different document.
The code of the website is similar to this:
Code:
<html>
<head>
<script type="text/javascript">
var name = prompt("Put here your name");
var surname = prompt("Put here your surname");
</script>
</head>
<body>
</body>
</html>
But I want to give the value of the
name and
surname to the vars of another script:
Code:
var name = "What I have to put here to get the info of the web?";
var surname = "What I have to put here to get the info of the web?";
document.getElementById("name").value = name;
document.getElementById("surname").value = surname;
document.getElementById("loginbutton").click();
Help please!