Home > front end >  How to access the web page of JS parameter values, a little nasty, thanked you!
How to access the web page of JS parameter values, a little nasty, thanked you!

Time:09-21

The code is as follows:
The function selectRow (obj) {
If (event) srcElement) tagName=="TD") {
CurRow=event. SrcElement. ParentElement;
CurRow. Style. Background="blue";
Var srcElement=event. SrcElement. ParentElement;
Var the innerText=srcElement. The innerText;
Alert (the innerText);
}
}


I want to be in the current page of the form of access to the JS var the innerText=srcElement. The innerText;
And displayed, what should I do?

CodePudding user response:

Suggest you go to learn here, https://www.w3school.com.cn/index.html
  • Related