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

  • SEARCH
  • Home
  • 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 8857581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:37:28+00:00 2026-06-14T14:37:28+00:00

I would like to display a ‘key’ (from a keychain) next to certain key

  • 0

I would like to display a ‘key’ (from a keychain) next to certain key words in an HTML/JavaScript app I’m creating, but I do not want to make any HTTP requests to load an image. How can I do this reliably across all major browsers?

Is there a UNICODE value that works? (I couldn’t find one)

Is there a Webdings Font that works? (They don’t usually work in Opera and Firefox)

Is there a way to create an image in JS using a base64 image source provided by a String from the JavaScript?

Thanks!

  • 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-14T14:37:29+00:00Added an answer on June 14, 2026 at 2:37 pm

    You can use base64 data in a image’s scr property:

    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot">
    

    You can then scan through the text with javascript, and add image tags where needed.
    (Or wrap the text in a span, and set the image as the span’s background.)


    To actually create a image in the DOM:

    var img=document.createElement("img");
        img.setAttribute('src', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38G    IAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==');
        img.setAttribute('alt', 'Red dot');
        img.setAttribute('height', '10px');
        img.setAttribute('width', '10px');
    document.body.appendChild(img);
    

    Edit:
    You can use this tool to encode a image to Base64.

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

Sidebar

Related Questions

I would like to display a 'refresh' symbol in an HTML/JavaScript app I'm creating,
I would like to display data from a database onto a content page using
The Javascript below has a default image, but I would like display text only
I would like clearly display some text coded in html, at the moment I
I would like to display a UIPopoverController in my iPad app when the user
I would like to display certain things on every or almost every page of
I would like to display an alertview when a user opens the app for
I would like to display a category name instead of a number (cat_id) from
I would like to display a row of tow divs next to each other
I would like to display a PDF generated from Reporting Services from my WinForms

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.