How to Javascript-write a graphic into a box

J

Jonathan Allen

Hi All,

Here's another question that has me foxed. I am (now) using <select> lists to
have users spell a Hebrew word. I'm using a javascript on_change() event
handler to catch and verify this. I want to have the javascript do a
document.write() to display the correct image file (of the appropriate letter)
next to the drop-down lists. How do I "goto" that point in the document and
trigger a redraw?

Jonathan
 
J

Jeremy J Starcher

Hi All,

Here's another question that has me foxed. I am (now) using <select>
lists to have users spell a Hebrew word. I'm using a javascript
on_change() event handler to catch and verify this. I want to have the
javascript do a document.write() to display the correct image file (of
the appropriate letter) next to the drop-down lists. How do I "goto"
that point in the document and trigger a redraw?

Jonathan


document.write cannot be used to change the page after the page is
finished.

Look at DOM usage, in particular createElement and its examples to
create a new element then insert it into the page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top