I have a problem with the click()-function from jquery. I create a -element with document.createElement(\'a\') and want call
click()
document.createElement(\'a\')
Add the element to the DOM before triggering the click:
document.body.appendChild(link); link.click(); document.body.removeChild(link);
This worked for me in all the major browsers