APEX - Set item value from different page via Javascript

In order to set a item value in another page without submitting the page create a Javscript call in the source page:

javascript:opener.document.getElementById("DESTINY_PAGE_ITEM_NAME").value = VALUE_TO_SET;

For example, you may have an interactive report showing a set of values, on click, this row values should populate a form in a different page:
  • Interactive Report:

  • Interactive Report configuration:

  • Source page header section source:

APEX - Javascript submit page with confirmation box

Submit APEX page via JavaScript with confirmation box.

Set the link action as "Redirect to URL" and set the URL as:
javascript:apex.confirm('<message>','<value to send in the request>');