unspecified error when accessing 'document' after file download

S

Suzanne Boyle

I have some javascript code in my page that calls the
document.getElementById method. This usually works fine however in IE 6,
after I have downloaded a file using the File Download dialog, I get an
unspecified error.

After a bit of testing I have found that whenever I try to access 'document'
this error occurs but only when the page is within a frame.

Does anyone know why this would be happenning?

Thanks

SuzyB
 
A

Arturo Alfaro.

If you have frame named "guestbook" and it contains form
named "comments" and textarea named "entry" then you can access its
value with:

x = top.guestbook.comments.entry.value;
 

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
473,776
Messages
2,569,603
Members
45,196
Latest member
ScottChare

Latest Threads

Top