How to add element nodes before the end of the body mark

Source: Internet
Author: User

The common methods for js to dynamically add element nodes to a page are appendChild. jquery provides many ways to dynamically add page nodes. The following describes how to add page elements at the end of the page TAG body.

Js method:

<Html xmlns = "http://www.phpernote.com/javascript-function/61.html"> 

Jquery method:

<Html xmlns = "http://www.phpernote.com/jquery-effects/650.html"> Articles you may be interested in

  
  • Website profit tips: how to turn every user into a core user
  • DIV layer that slides with the scroll bar (fixed to the DIV layer that does not disappear with browsing on the top of the page)
  • Summarize the causes and solutions for the slow MySQL Database Server
  • How to optimize servers, static databases, and load balancing for high-traffic websites
  • Copy a webpage and add copyright information automatically
  • CSS adds a background image to the text input box
  • Reasons why PHP adds a backslash before the quotation mark and how PHP removes the backslash, there are three ways to disable the php magic quotation mark
  • JQuery adds Event Response to dynamically generated content (jquery live Method Introduction)

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.