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 http://oldstatic.travisberry.com/demos/canvas-text-demo/index.html
It comes from here http://www.travisberry.com/2011/05/write-text-anywhere-with-html5-canvas/
But I want JavaScript solution, not HTML.

Imagine this is the only HTML.

<html>
<body>
</body>
</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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.