Possible Duplicate:
Is there a way to simulate key presses or a click with javascript?
I know it's an old and repeated question, but before replying "google it", read the question plz .
I'm trying to simulate some of user interactions with page in my chrome extension and one of them is mouse click. I can "click" on links with a proper href and move to that page (window.location etc ) but my problem is with anchors that load content via ajax, for example in facebook home page, if I want to trigger the "Top News" news feed button, in theory I should use : $(".uiHeaderActions .fwn").click();
but it doesnt do anything ... and idea ?