linux1880 Posted April 14, 2010 Share Posted April 14, 2010 hi friends what does this means ? href="JavaScript:void(0);" Link to comment https://forums.phpfreaks.com/topic/198472-what-does-javascript-void-means/ Share on other sites More sharing options...
trq Posted April 14, 2010 Share Posted April 14, 2010 If you have a Javascript function within a href that returns a value the browser will try and open a page at a url of that value, void returns no value, this prevents the browser from going anywhere when the anchor tag is clicked on. Link to comment https://forums.phpfreaks.com/topic/198472-what-does-javascript-void-means/#findComment-1041463 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.