A little explanation of scripting language on HTML

Source: Internet
Author: User
Script I found out that a friend of mine was not very clear about the meaning of this representation in the HTML scripting language. It is estimated that anyone who has studied programming
is very clear, but I still want to be here 381, today:.
This. Represents the current class, such as the following code:
<TABLE>
<tr onclick= "Javascript:alert (THIS.XAMCSDN2);" xamcsdn2= "Xam" >
<TD>e</TD>
<TD>r</TD>
<TD>t</TD>
</TR>
</TABLE>

All the labels on the Web page are objects. The above code must represent <TR></TR>

<table border=1><br>
<tr onclick= "Vbscript:alert (ME.XAMCSDN2)" xamcsdn2= "Xam2" >
<TD>1</TD>
<TD>2</TD>
<TD>3</TD>
</TR>
</TABLE>
As for XAMCSDN2, it is the custom attribute of the <TR>.
Then someone will ask whether <TR> is a class or an entity. This is the <TR> class.
We can document.createelement (' TR '); To create one of the TR entities.
#结束
I hope you support me a lot!
The above code is just a rough demo.
I hope we can discuss dotnet technology with you.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.