How can I display a string at any x and y coordinated position of a webpage? Using only JavaScript, unless I have to have the text already included in the HTML and then hide or reveal it using javascript? I can already do that but I can't use x and y values and it's not what I want. Everything is input dependant.

I don't want to use JQuery or any such. And I would also like to use % for height and width positions.

I want like this demo
It comes from here
But I want JavaScript solution, not HTML.

Imagine this is the only HTML.


first create te code in html to make sure you get what you want.
Then create that html-code using javascript with document.createElement

commented: thanks :) +1

Thanks, much appreciation, I guess I need to learn more about this DOM.