pstein Posted August 10, 2017 Share Posted August 10, 2017 Assume I want to output something at the bottom of a webpage. The output text should not be assigned to a certain element or tag (if possible). I just want to write something likedocument.write("<p); Is this possible? If I have to assign it to <body>: What would be the minimum code to achieve this? Peter Link to comment Share on other sites More sharing options...
dsonesuk Posted August 10, 2017 Share Posted August 10, 2017 Try using appendChild(), create elements then append to body, which will make it appear before </body> element https://www.w3schools.com/Jsref/met_node_appendchild.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now