Can Javascript simulate button click from a page to another page both pages are in same domain. I need to click a button then get the webpage's content. Any hints?
I have tried
var newwin = window.open('somelink');
var xy = newwin.document.getElementbyId('id');