This tutorial demonstrates building a basic web browser in Windows 10 using the Microsoft Edge WebView control and standard web technologies (HTML, CSS, JavaScript). While a Mac-based equivalent isn't directly supported, virtual machines or dual-booting an Insider build offer workarounds.
The WebView control offers significant advantages over iframes, including improved handling of framebusting and document loading events. The x-ms-webview
tag provides unique capabilities such as enhanced local content access and screenshot functionality. The resulting browser leverages the same web platform as Microsoft Edge.
Get the Sample Code:
The complete source code is available on GitHub. You can also experience the browser directly by installing the app from the Windows Store or deploying the Visual Studio solution.
This project showcases the ease of creating a functional web browser with standard web technologies and the WebView control. Microsoft encourages further exploration of Windows 10 development.
Further Web Development Resources:
This article is part of a series from Microsoft focusing on practical JavaScript, open source projects, and cross-browser compatibility best practices. Leverage these resources to enhance your web development skills:
Frequently Asked Questions (FAQ):
The following FAQs address common questions about building browsers using EdgeHTML and JavaScript:
history
and location
objects.This revised response maintains the original content's meaning while improving readability and structure. It also condenses some sections for conciseness.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3