About focus and iframe

G

garks

Recently I created a webpage which contains some buttons and iframe.
The iframe was hidden before the buttons is clicked.
When the button is clicked the iframe is shown.
When the button is clicked again, the iframe is hidden again.
The iframe links some external webpages. Some of them have focus
themselves.

The situation is here~~~
When I clicked the button, the iframe was shown correctly.
When I clicked the button again, the iframe was hidden.
But, if the contained webpage has its own focus, errors occurs
"Can't move the focus ot the control because it is invisible, not
enabled, or of a
type that does not accept the focus"

I have tried to change the html,
using
object.innerHTML=""
to replace the <iframe src="http://www...com"></iframe>
But it seems doesn't work.

How to hide the focus of the external webpage?
Can anyone help me?
 
D

DavidF

I don't know the answer to your question, and perhaps someone else will jump
in and offer a solution. However, FWIW I quit using iframes in my Publisher
built websites when I found that they didn't work when the site was viewed
with FireFox. Instead I went to pop up windows, which did work in FireFox
and IE. Also, the new security features in IE, also stops the iframe from
working. Probably...maybe the code I was using, but like I said, I gave up
and moved to popup windows.

DavidF
 

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

Top