basil3legs
Programmer
I have tried everything I can think of to put text in a textarea in a child window opened via javascript. I can't get it to work. However, someone else had a look at this and came up with (which does work):
This works with the alert but won't if the alert is removed (and we don't want it there!). The form on the page has no name and the textarea is called "message".
Any suggestions?
Code:
javascript: var a=window.open("webpage.php"); alert(a.top); a.top.document.getElementById("message").value='123'; alert(a.top.document.getElementById("message").value);
This works with the alert but won't if the alert is removed (and we don't want it there!). The form on the page has no name and the textarea is called "message".
Any suggestions?