.bind ('click', function () {window.open (. $ (this) .find ('pc_more') HTML ());}); });
Is there anything in this part of the code that tells him to open the link on a new page? can i put some code to open the link in the same window?
You are looking for:
.bind('click', function(){ window.location = $(this).find('.pc_more').html(); });
... assuming the element matched by .pc_more really has a link as its HTML.
.pc_more
Living example
Try using window.location instead of window.open ().
window.location = $(this).find('.pc_more').html();
Source: https://habr.com/ru/post/1334126/More articles:Is LVS_EX_DOUBLEBUFFER correct not duplicating the buffer when working on a remote session? - c ++What is the lifespan of each storage area in ASP.net MVC - asp.net-mvcWhy is there no django nose in my models? - djangoline trace line strings are invalid with debug = false and compilerOptions = "/ debug: pdbonly" - c #View QImage During One-Step Debuggingpostgres full-text search as operator - postgresqlImplement Token Authentication - authenticationASP.NET MVC: It would be good practice for the API controller action to return to both View and / or JSON - jsonIs the html php document faster or is the preg_match_all function faster? - domWhat should I index? Usernames or user identifiers? - sqlAll Articles