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 624699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:13:44+00:00 2026-05-13T19:13:44+00:00

I don’t know if I’ll be able to describe this correctly, so please bear

  • 0

I don’t know if I’ll be able to describe this correctly, so please bear with me!

Is it possible to get the browser to display html from the address bar? ie. there would be no actual html page it would load, but it would instead display whatever was inside the address bar? Might this be something for javascript or is that not possible?

Hope that makes sense! I’ll clarify if need be. Many thanks for any help, much appreciated.


Edited to try and clarify the OP’s question

I want to use the URL to generate the page, for example (Using Jonathan Sampson’s answer):

javascript:document.write("<b>HelloWorld</b>");

…but I want it for a whole page, ie. include all the html in the HelloWorld part.

  • 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-05-13T19:13:45+00:00Added an answer on May 13, 2026 at 7:13 pm

    Really difficult to understand what is being asked here. If you input the following into your address bar, you will output HTML onto the document:

    javascript:document.write("<b>HelloWorld</b>");
    

    This type of stuff is only really helpful when programming bookmarklets though. If you decide to do something like this, be sure to escape the inner quotes. For example, below I have unescaped double-quotes around my style rules.

    javascript:document.write("<b style="text-decoration:underline">foo</b>");
    

    The appropriate way to write this would be:

    javascript:document.write("<b style=\"text-decoration:underline\">foo</b>");
    

    Or

    javascript:document.write("<b style='text-decoration:underline'>foo</b>");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't know if this is possible. I display a table of results and
I don't understand where the extra bits are coming from in this article about
I don't want PHP errors to display /html, but I want them to display
I don't know if anyone has seen this issue before but I'm just stumped.
I don't know Regex very well, and I'm trying to get all of the
I don't know if i am doing it right, this is what I got:
Don't know if there is a better way to do this, so that is
Don't know what to do with this error. How to add data in SQL
Don't know if this is an eclipse specific problem but whenever I declare a
I don't know if this has been asked before, but what i'd like to

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.