How can I detect the end of a webpage?
How can I detect the end of a webpage to put a div bar that contains the 'about' and 'contact us' links? I want to detect the end of the page so the bar can automatically put itself at the end of the page regardless the resolution. Thanks
var node = document.createElement("div"); node.innerHTML = "put html here"; document.body.appendChild(node);
Here is the jsbin snippet.
Another possible solution is:
document.body.innerHTML += "put html here";