ASP.NET/jQuery Is it possible to execute a link without opening a new page? -
Is it possible to have a link, once clicked, execute href target, but a new window pop Not up?
I think you use jQuery, because you tagged it as a tag . Using AJAX calls will suppress the page and if you wish you can take action when you are finished. E.preventDefault will stop the clicks (by visiting the URL) to stop coming.
Something like this?
$ ("a # mylink"). Click (function (e) {Var goto = $ (this) .attr ('href'); // url $ .ajax ({url: goto}); // href e.preventDefault (); // Click Prevent}};
Comments
Post a Comment