I am developing a
struts application in which opening a new window through
java script. I want to write few content to this new window and the SUBMIT it.
I am succeeded till writing contents to this new window but not able to submit it. My code reads,
function openNewWindow()
{
myWindow = window.open("\popupWindow.html", "tinyWindow", 'toolbar,width=150,height=100')
myWindow.document.write("Welcome to this new window!")
myWindow.document.bgColor="lightblue"
myWindow.document.close();
myWindow.submit();
}
Does window.submit() works? please advice.(I know contents on this new wondow will be not be visible but thats my requirement....this is just for populating my ActionForm)