I have a social networking site for my college community and its working fine. There is a feature to like a post by other users. Liking is triggered using javascript's onClick() function.
Recently due to security reasons, many of our members disabled javascript.
Is there any way to redirect a user to a particular page if javascript is disabled? Otherwise the script should work.
For a more discriptive detail, assume my current code is like:
<a href="#" onclick="return likeFunction();">Item</a>
what i want is something like:
<a href="www.mysite.com/postController/likeAction" onclick="return likeFunction();">Like</a>
**but href should be active only if onclick() function dont work. is that possible? **
my site is built with php codeigniter. any solutions?