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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:20:32+00:00 2026-05-26T16:20:32+00:00

When I load an HTML page into a WPF Frame element, it runs the

  • 0

When I load an HTML page into a WPF Frame element, it runs the JavaScript differently than if I load the same page into a Web browser like IE. Why is that, and is there any way to make Frame‘s behavior match the browser’s?

If I load the following HTML into a Web browser:

<!DOCTYPE html>
<script>
document.write('abc'[1])
</script>

it outputs b in Chrome, FireFox, Opera, and even IE. But if I load that same HTML into a WPF Frame:

<Frame Source="C:\Path\To\Page.htm" />

it outputs undefined instead.

Why the difference in behavior? I thought Frame was supposed to use Internet Explorer to render, but apparently it’s doing something different.

If I leave off the DOCTYPE line, then IE also outputs undefined (though none of the other browsers do), which suggests that IE is using a different version of JavaScript (!) when the page doesn’t declare itself to be HTML5. But then I would expect Frame to use the same logic, and clearly it does not — it uses the older, not-supporting-string-indexing version of JavaScript even when I do declare the page to be HTML5.

What’s going on to cause Frame to run the JavaScript differently than IE?

  • 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-26T16:20:33+00:00Added an answer on May 26, 2026 at 4:20 pm

    It uses a lower engine. I assume you tested it on IE9? Well, IE9 broke away from the ActiveX control-style web browser. You need to use 'abc'.charAt(0) instead of abc[0].

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

Sidebar

Related Questions

I'd like to load/insert an external html page into my web page. Example :
I know that I can use $('#myId').load('aPage.html'); to load a page into an element,
How can I only load the HTML of a page into an IFRAME, without
I wish to load some additional data from javascript in an HTML page. The
How can I load the content of a web page into a variable? I
Using either .ajax or .load, I'm loading content from an .html page into or
Am developing an app which load a HTML page into uiwebview - that html
I am not able to load an external html page into a div in
I was using jQuery.load() to load a html page's content into a lightbox. The
i am trying to put a pagination page into jquery. example.html?id=foo&get=23 i would like

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.