Hacker News new | ask | show | jobs
by baalimago 2958 days ago
Is there any particular reason why js wouldn't be used to emulate the same effect? I'm thinking that the onclick() method calling several things instead of just whatever the button is intended to do.

Please do ignore if i completely misunderstand the discovery, but i don't really see the need to make a html+css button to make any of this execute.

1 comments

The same origin policy prevents JS from triggering clicks on elements in iframes that have different origins! The web would be a very insecure place without that... =)
Ah, I see. Very good point, thank you!