Saw in one site file download. There is a javascript link. When you click a new window is created with the desired size. There is a file upload form and a "add" button. There is no js in this form, but when you click "add", it completely uploads the file, refreshes the page and closes itself. And on the main page is added "tag" with its address.

JS-link on the main page

function multi_call4505() {"forum_serv.php?q=6","attach","toolbar=0,width=400,height=120"); } 

In the new window, the usual form with the input file

 <form method="Post" action="forum_serv.php?q=7" enctype="multipart/form-data"> 

Interested in 2 questions, how does the main page learn about file loading and how does a child window without JS self-close?

  • Maybe there is still javascript? Where such confidence? - Zhukov Roman
  • here no js, ​​I think all this is the main page of - hitman249

1 answer 1

well, I understand why it is closing
it switches the page to forum_serv.php? q = 7 in which js
<script> window.opener.req_serv ("forum_serv.php? q = 8"); window.close (); <; / script>
then immediately switches to forum_serv.php? q = 8 and closes the window
but how does the main page find out about it?

  • figured out the opener method breaks to the parent - hitman249