Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9276761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:55:43+00:00 2026-06-18T16:55:43+00:00

Basically I have some HTML encoded as base64 with an iframe with said html

  • 0

Basically I have some HTML encoded as base64 with an iframe with said html set as the source.

<iframe src="data:html;base64, PGRpdiBzdHlsZT0iY29sb3I6cmVkOyI+VGhpcyB0ZXh0IGlzIHJlZC48L2Rpdj4="></iframe>

jsFiddle version

The above code should display as:

This text is red.

Firefox seems to be able to display it with no issues, however Chrome attempts to download it as a file and not display it at all. IE also has issues, but I’m not too concerned regarding this particular project.

I’d like to know why this is happening, and the resolution if any.

Cheers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:55:44+00:00Added an answer on June 18, 2026 at 4:55 pm

    This issue is caused by bad specification of the data type.

    If you refer back to the original code, the specification was as follows;

    data:html;base64,
    

    However, the correct specification type for HTML is;

    data:text/html;base64,
    

    Firefox seemed to understand the malformed version, Chrome did not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a nice DataGridView showing what is basically some kind of log data
$country.parent().parent().next().children('td').children('.province-select') Basically I have some HTML that looks like this: <table> <tr> <th>country</th> <td><select
Basically: I have this HTML: <div id=foo><img src=/foo/bar/{var}/foo alt={var}></div> When calling (using jQuery in
I have some HTML I need to parse. Basically I'm walking through the dom
I have some pretty basic HTML/CSS that isn't working as I expect. Basically I
I am dealing with some HTML text that I basically have read access to.
I was making a small thing in HTML and basically I have some frames
I have a variable that contains some text, some html, basically can be a
I'm working on a little project, basically I have some text on my PHP/HTML
i have some troubles implementing this layout: http://deconcini.net/maurer-schneebacher/projekte/elisabethinum.html Basically i would like to display

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.