I
I
Isaac Clark2015-10-27 15:50:52
HTML
Isaac Clark, 2015-10-27 15:50:52

How to display data in iframe via src attribute in Internet Explorer?

Hello. Here I am trying to display a simple layout in an iframe:

<iframe name="iFramePreview"
                               height="850"
                               width="850"
                               src='data:text/html;charset=utf-8,<html><body>Hello World' />

Works in all normal browsers except IE. Tell me how to fix this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivanq, 2015-10-27
@Ivanq

It seems IE doesn't support data. I don't remember now, but it seemed to work about:&lt;html>&lt;body>Hello World. IE, if it doesn't know the about url, shows everything after the colon.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question