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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:14:41+00:00 2026-06-05T09:14:41+00:00

I have a offline htm file on my PC which I use to test

  • 0

I have a offline “htm” file on my PC which I use to test HTML codes. It is like a HTML editor. It compiles HTML codes. But I have a problem with it. It supports all kinds of CSS and JavaScript and also JavaScript Based Libraries like jQuery but does not support events like- onload, $(document).ready() I don’t know why? I have tried many things about it but was able to do nothing.

So see the source code of my editor:

<html>
 <script type="text/javascript">
  function ShowResult()
  {
    my_window = window.open("about:blank", "mywindow1");
    my_window.document.write(x);
    if(my_window.document.title=="")
    {
      my_window.document.title="No title was specified"
    }
  }
 </script>
 <body>
   <textarea style="height:400px;width:750px;overflow:auto;" onblur="x=this.value">
   </textarea><br />
   <button onclick="ShowResult()">see result!</button>
 </body>
</html>

Please tell me what mistake have I done? Why me file is not supporting “onload” events?

  • 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-05T09:14:42+00:00Added an answer on June 5, 2026 at 9:14 am

    You’re executing the code within the context of a page that is already loaded.

    Systems like jsfiddle handle this by dynamically generating a page and loading it into an iframe.

    You’d need some sort of server-side scripting to do this. I’d advise installing a local webserver (i.e. Wampserver).

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

Sidebar

Related Questions

I have an offline html file that generates and saves a CSV by setting
I have a brilliantly designed app_offline.htm file that I'd like to display on my
I have piece of offline html like so: <img src=../img/button.png/> and when I try
We have an offline Safari application with UI designed for vertical use (pixel perfect).
I've read about the app_offline.htm file which can be placed within the root of
I have some offline databases on a SQL server. I would like to know
Does the HTML 5 application (offline) cache have any benefit for online/connected apps? My
I have an asp.net application that uses the file (something like hand-made DB). It
I'm developing this tourist app and I would like to have an offline map
I have a few questions regarding HTML5 offline storage, which I could not figure

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.