0

I have this jsf button on my parent window:

The action opens a pop-up with another button, what I want is to reload the text associated with the parent button (Which is updated on java) without reloading all the page. I am trying this javascrit event on my child's screen button:

window.opener.document.getElementById('boton').location.relo‌​‌​ad()

But this is not working, how can I access to the parent page's button (or div) using javascript?

Blazerg
  • 821
  • 2
  • 13
  • 32
  • Maybe you can find some working answers here:
    - http://stackoverflow.com/questions/13311812/popup-window-accessing-parent-dom
    - http://stackoverflow.com/questions/2167455/how-to-access-parent-window-object-using-jquery
    – Ben221199 Mar 12 '17 at 19:33

1 Answers1

2

This works:- (U need to get by formId:buttonId)

window.opener.document.getElementById('j_idt5:btn0').click();

murali
  • 40
  • 3