JQuery question (link history) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: JQuery question (link history) (/showthread.php?tid=8777) |
JQuery question (link history) - El Forum - 05-30-2008 [eluser]Référencement Google[/eluser] Hi all, How can I make such a thing with a JQuery listner rather than having a href with javascript inside: Code: <a href="[removed]history.back();">Back</a> Hmmm the forum add a [removed] tag but normally it's write with "javascript" inside JQuery question (link history) - El Forum - 05-30-2008 [eluser]Quin Hoxie[/eluser] You can use jQuery's bind function to achieve this like so: Code: <span id="hist">Back</span> JQuery question (link history) - El Forum - 05-30-2008 [eluser]Référencement Google[/eluser] [quote author="mrapples" date="1212194612"]You can use jQuery's bind function to achieve this like so: Code: <span id="hist">Back</span> Ho thanks, that was really more simple that I thought ! JQuery question (link history) - El Forum - 05-30-2008 [eluser]Bramme[/eluser] [quote author="elitemedia" date="1212194761"][quote author="mrapples" date="1212194612"]You can use jQuery's bind function to achieve this like so: Code: <span id="hist">Back</span> Ho thanks, that was really more simple that I thought ![/quote] you can do that even shorter Code: <span id="hist">Back</span> Code: <a id="hist">Back</a> JQuery question (link history) - El Forum - 05-30-2008 [eluser]Référencement Google[/eluser] Thank you for the tip Bramme |