sKunKbad Posted July 15, 2007 Share Posted July 15, 2007 I'm using hyperlinks with onclick events to change the page contents. The hyperlinks have onclick events that call the php/mysql content that fills the content div of the page. I was under the impression that since there was an onlick event in my hyperlink that the onclick would take precidence over actual href. I need to be able to have the links in href so that people can bookmark the actual page views. How can this be done? Quote Link to comment https://forums.phpfreaks.com/topic/60090-solved-hyperlink-ajax-onclick-bookmark-question/ Share on other sites More sharing options...
sKunKbad Posted July 17, 2007 Author Share Posted July 17, 2007 Once again I solved my own question by looking at code from around the net somewhere. If you have hyperlinks that are using the onclick event, the proper format for the hyperlink is as follows: <a href='javascript:;' onclick='yourAjaxFunction();'>Click me</a> Quote Link to comment https://forums.phpfreaks.com/topic/60090-solved-hyperlink-ajax-onclick-bookmark-question/#findComment-300044 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.