I have just compiled a Javascript script for modifying HTML code [original]

Source: Internet
Author: User

Our code is always Bt. It's okay to sit down with a CC component .. All the code is run in the DLL .. The source code is not public .. Our artist is very depressed .. No way .. A small script is written in JavaScript .. Rewrite it in the final client .. It is mainly practical .. No technical skills .. Haha ..

Note: Our company's program is developed by the head office. As a branch, we only have DLL, so we only have this article ..

<Div id = "TT">
<A href = "http://www.sina.com.cn"> You can touch me !! </A>
</Div>
<Script language = "JavaScript">
VaR ppvar;
Ppvar = Document. getelementbyid ("TT"). innerhtml;
Ppvar = ppvar. Replace (/www.sina.com.cn/g,'www.zzcn.net ');
Document. getelementbyid ("TT"). innerhtml = ppvar;
</SCRIPT>

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.