I have an html page with a button,when click on it opens another html(different window) with some text .I want to get the value of button into a text of another html page.Is it possible pl someone help......
//one html form
one.html
<html>
<script language=javascript src=link.js>
</script>
<body>
<input type="button" name="n1" value="xyz" onClick="openWindow(this)">
</body>
</html>
//this is link.js
function openWindow(a)
{
var x=window.open('two.html','newwindow' ,'height=300
width=300');
}
two.html
<html>
<body>
<input type='text' name='n2' value="">
</body>
</html>
this code opens new window with the text.I want the text to have a value xyz(button value of one.html) Is it possible???
//one html form
one.html
<html>
<script language=javascript src=link.js>
</script>
<body>
<input type="button" name="n1" value="xyz" onClick="openWindow(this)">
</body>
</html>
//this is link.js
function openWindow(a)
{
var x=window.open('two.html','newwindow' ,'height=300
width=300');
}
two.html
<html>
<body>
<input type='text' name='n2' value="">
</body>
</html>
this code opens new window with the text.I want the text to have a value xyz(button value of one.html) Is it possible???