Interesting script tag uses the getAttribute method from script _ javascript skills

Source: Internet
Author: User
Tags ojs
The interesting script tag uses the getAttribute method from the script to introduce external objects and PASS Parameters in the webpage. You may have this experience. In general, the tags used are iframe and embed (for flash). However, neither of these labels can set parameters like xml, you can only append the query string after the url to pass the value. Htc is quite good, but it does not have browser compatibility. If you want to, you will not consider it.
The script tag can be used to load an external js file to the page, regardless of whether the file is in the same domain or not. This cross-domain feature is unique. In general, we only use js files as part of public code, and integrate some public functions and classes here. In another way, we think of the script tag as a large visual component. It is interesting to pass in parameters and adjust the layout according to parameters.
For example,"
Related Article

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.