views:

50

answers:

1

I'd like to give people the ability to insert a single Javascript line into their site which effectively allows me to insert an IFRAME of a fixed size that contains content from my site. It's effectively a widget which allows them to search my site or receive other information. Is this possible?

+2  A: 

Yes, it is possible.
You can use document.createElement("iframe") and then appendChild() or replaceChild() the new element =/ [if you use replaceChild, you define a dummy div that has the width/height of your iframe]

Or am I interpreting your question incorrectly?

ItzWarty
That's great. I'm going to try this out.
Nissan Fan
K, I have no life so I'll check back often. If you have any questions feel free to ask via commenting on this answer =/
ItzWarty