jquery - How do I save article ids in Javascript or HTML? -
i have list of links in web-page , users can click , comment on them. load links via json , each link uniquely identified id.
my question how know link has been clicked? though have id, store it(if javascript object, how?)? guess cannot have tag attribute because users may change it.
it sounds want able create link page specific id, without displaying id? if case, think you'll face difficulties doing in simple way, javascript client-side , user able alter id anyway. i'd recommend keeping id in link (<a href="url.com/post/42>
, example) , rather, when page loaded, in way or another, check if provided url valid, existing id.
Comments
Post a Comment