Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
damir
on Sept 5, 2018
|
parent
|
context
|
favorite
| on:
How true hackers write JavaScript
OP here, looking at the vote function, I learned something new today - this code:
new Image().src = el.href;
will make image request to server with any params from href so you can process the voting stuff. Nice one.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: