Home  >  Article  >  Web Front-end  >  JavaScript asp.net Get the text in the current hyperlink_javascript skills

JavaScript asp.net Get the text in the current hyperlink_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:54:26893browse

function openNo(sender)
{
var linkNo = sender.toString().split("'")[1].replace(/$/g,"_");
var strNo = document.getElementById(linkNo).innerText; //This is strNo
}
The link backend code is as follows:
my0000001
Among them:
sender=javascript:__doPostBack('ctl00$MainContent$BtnBaiyakuNo','')
linkNo = ctl00_MainContent_BtnBaiyakuNo
strNo = my0000001
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn