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


If you want implementation in pure JavaScript try:

var node = document.createElement("div");
node.innerHTML = "put html here";

Here is the jsbin snippet.

Another possible solution is:

document.body.innerHTML += "put html here";

You could do this with a master page, or I guess since you tagged this with javascript you could use jquery as well. Use a selector to select the body or html tag and then use append:

$("body").append("Your links");

Need Your Help

Regular expression parsing block


What is best practice for parsing the following blocks in c#-regex?

Trying to use grunt-sass and it can't find compass

node.js gruntjs grunt-contrib-compass

i am trying to write a grunt script to watch and compile my sass files. I have decided that i would do it with grunt-sass instead of the usual grunt-contrib-sass simply because i don't have to worry