Home > Web Front-end > JS Tutorial > 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
Release: 2016-05-16 18:54:26
Original
923 people have browsed it

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
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template