Question:
how do i make a web browser?
tim85a
2010-01-13 03:22:32 UTC
Hi, I want to make a web browser but don't know where to start.

I am planing to use C++ but am willing to look at other languages.

What I need to know is what I need to program, I would love a check list I could work down of all the components and what they and meant to do.

Thank you for your help
Tim
Seven answers:
Jason W-S
2010-01-13 03:36:08 UTC
A Web Browser has Four major parts



1. A Request manager that can handle Get, Response, Request, etc

2. An HTML parser that includes a document interface, script interface, DTD compliance parser and DOM manager.

3. User Interface including the menus, address bar, and motion gestures (back, forward, home)

4. The Cache or memory manager



Additional parts that all modern Browsers possess

5. Download manager (this helps converts http based requests into separate streams for IO)

6. Browser level error processing

7. Handicap/International facilities



If you're looking for a requirements doc add these to the parser:

-Text parser should be able to accept DTD's for validation and interpretation and should cache common DTD's for speed of processing.

-Document module should be forgiving of the most common errors in html

-CSS support
2014-08-17 12:51:11 UTC
You can get the latest version of Winrar here: http://bit.ly/1o0M15D



I like Winrar because it's a very good program to compress/decompress files in many different formats. You could also use other programs like 7zip or winzip for the same purpose but I think Winrar is the best option avalable. The funcionalities are pretty much the same for each program (you basically do everything with a simple right-click of your mouse) but Winrar is by far the best option.



The things I like about winrar is that it opens a bunch of compressed formats: .zip, .rar, .7z / 7zip, .iso, .tar, .jar etc. (much more than the other programs) and that it's 100% (trial period never expired so you can use it for free with no limitations)



These are the reasons why I recommend Winrar.
2010-01-13 10:50:17 UTC
Open Visual Basic 2008 Express Edition

Click on Project next to Create

Click on Windows Form Application, and name the project "Your name's Application" and then click Ok

You can change the form text to "your name's web browser". Click on the form and then go to properties window, then change the text property.



In the properties window, change the WindowState property to Maximized so that when the user launch the web browser, it will be maximized:

Add a Webbrowser from the toolbox.



Change the dock property

Right click on the webbrowser and click on propertie

Adjust the size of the webbrowser on the form, and leave a space between the webbrowser and the controlbox of the form:

Let's first assign the home page of the webbroser. The home page is the first page that appears when the Web Browser is loaded.



To do that, right click on the webbrowser and click on properties.



Change the property of URL to your favorite website:

Add two buttons to the form and place them between the form's header and the web browser. Change the text for each button to << and >>

The button that text is << will do the Back command:



Double click on the button and the following highlighted code:



Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click



WebBrowser1.GoBack()



End Sub



The button that text is >> will do the Forward command:



Double click on the button that text is >> and add the following highlighted code:



Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click



WebBrowser1.GoForward()



End Sub
2010-01-15 00:04:10 UTC
Firefox is open source so apart from the answers people have gave here about the various checklists and such, you could download the complete Firefox source code from Mozilla and look at the code be warned though its massive.



The bulk is written in C++. The code is compressed inside BZ2 files they are like zip files you will need an extraction tool to get it out



The Firefox 3.5 release:

ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/3.5/source/

You can 'go up one level' a few times to any other release, the really old ones will be simpler but less featured.



BZip program for handling .bz2 files:

http://gnuwin32.sourceforge.net/packages/bzip2.htm
Deadly Headshot
2010-01-13 07:19:54 UTC
I'm gradually amassing the tools to do that myself and it's taking ages. If I were you, just cheat and use the component provided in Visual Studios...



Of course I'm me, so I've gradually scrounged together most of the code from the first ever web browser (written in C), in order to port it across to W32 from NeXT, then use that as a basis for my own ideas...
2010-01-13 03:27:04 UTC
Microsoft Visual Basic

:-)
Help
2010-01-13 03:27:49 UTC
C++ is the way to start. But you are getting way over your head by simply asking that question.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Loading...