I wanted to embed a PDF file in my website, it looked like this:

```
<object data="data/PDFTest1.pdf" type="application/pdf" id="data"></object>

```

But then I wanted to first Get the file with ajax (in a javascript file), edit it's source code in JavaScript, and then create an `<object>` and give it the resulting data. The problem is that the Object needs a url in its `data` attribute, and does not accept the actual data directly. How can I handle this?

Is there a way to create a "fake url" in javascript for example?

Or can I somehow pass the data in another way to the object?

Or should I maybe use some other tag ?

Thanks in advance and sorry for my English.