0

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>

Edited by nouth

2
Contributors
2
Replies
25
Views
3 Years
Discussion Span
Last Post by nouth
0

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

Edited by nouth

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.