Cmd + Click selected element to open a link in new tab (Safari)


I am wondering how to simulate cmd+click to click on a selected element using javascript to open an element in a new browser tab?

document.getElementsByClassName("update")[0].click(); - This is what i have at the moment and want to modify.

Hey Kirill,

Can you post the actual webpage?

I think you're going to have to parse the source and then create the new tab with AppleScript.


The solution has been provided in the topic below