Your inline onclick handler needs to return false. Maybe your popup() function is returning false, but the onclick handler itself isn't returning anything.
You need to do: onclick="popup(href); return false;" If popup() returns false, you can write: onclick="return popup(href);" Or, take a look at Ralph's solution using .live(). -Mike On Sun, Sep 27, 2009 at 9:43 AM, Yuzem <naujnit...@gmail.com> wrote: > > > Sorry for the delay, it seems that the server was doing some maintenance > work. > > Thanks for the answer. > I just find out how to do it the other way: > a href="url" onclick="popup(href)" > > Now, I am getting the href but the problem is that the entire page get > reloaded even using return false. > > Does anyone know how to avoid that? > -- > View this message in context: > http://www.nabble.com/A-very-simple-newbie-problem-tp25526787s27240p25635183.html > Sent from the jQuery General Discussion mailing list archive at Nabble.com. > >