browser , Whats the connection between the browser and the Internet?


Whats the connection between the browser and the Internet?

Question:

Tag: browser

How does a browser fit in to the internet? The router connects you to the ISP servers and then you get connected to the internet, correct? How does the browser take your computer and relate it to the internet?


Answer:

A browser is, in the most basic sense, a web page renderer. It's main job is to retrieve a page (usually a HTML text file) from the web and display it to you so you can interact with that page. Inside the HTML there can be references to images and scripts, and the browser manages them for you. Example: You want to access the StackOverflow page.

Step 1: You type the adress in the browser (http://www.stackoverflow.com)

Step 2: The browser converts the adress to a IP adress (using DNS services), and then sends a HTTP request to that IP

Step 3: The page is retrieved

Step 4: The browser parses the page and retrieves any images or files required by that page (all through HTTP requests)

Step 5: The browser renders the page and shows it in your screen

Step 6: When you click in a link, the browser sends another HTTP request and the the process starts again

HTTP is not the only protocol used in the web, I used it for the sake of simplicity.

If you want to understand the "how" of all that, you would have to study computer languages and programming.

I suggest you to read these pages:

http://en.wikipedia.org/wiki/Internet_Protocol

http://en.wikipedia.org/wiki/Domain_Name_System

http://en.wikipedia.org/wiki/HTML

http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol

http://en.wikipedia.org/wiki/Web_browser


Related:


Retrieving document.cookie getter and setter


javascript,cookies,browser
I'm trying to override the document.cookie since i need to control cookie creation, but seems that getOwnPropertyDescriptor casted on document.cookie doesn't retrieve its getter and setter ( tried on chrome and firefox ). Could someone explain me this behaviour? https://jsfiddle.net/1363ktwp/7/ var obj={}; // creating a property using document.cookie descriptors Object.defineProperty(...

Are background images loaded if container opacity is 0


html,css,browser
Does browser load elements background image if elements opacity is 0? .element { background-image: url("someurl"); opacity: 0; } ...

JS Browser with pause function, help please


javascript,function,browser
I wrote this program in js that goes through a list of URLs, where it stays on each page for a few seconds, closes the current window, and open the next in line. Everything works perfect, now I need it to stop/pause every 5 links. The second part of this...

Why doesn't JavaScript get its own thread in common browsers?


javascript,browser,architecture,software-design
Not enough that JavaScript isn't multithreaded, apparently JavaScript doesn't even get its own but shares a thread with a load of other stuff. Even in most modern browsers JavaScript is typically in the same queue as painting, updating styles, and handling user actions. Why is that? From my experience an...

How To Open A Website's (Built on Wordpress) PHP file in my browser?


php,wordpress,browser
I came across a website and liked its look. So, I wanted to know how its style.css is coded. I got there style.css file by visiting to Network Tab of Inspect Element and then opening that file in a new tab. We can open JS files also in the same...

Open a html document with php


php,browser
I have a strange setup at the moment (busy with a migration) I have a 4th Dimension application which calls php scripts (which is our soon to be, only application. Dropping 4D) This script thats called from 4D needs to open a html file in the browser. Is this possible?...

How to make a browser console wait in a javascript


javascript,browser,console,wait
I'm trying to make a script that clicks on a page button, waits X seconds (for the result of the click to take place), and then continues. How can I do that? (only the wait part)...

jQuery - Listen to User click on the Auto Suggest Option provided by browser


javascript,jquery,browser
This is my input box. <input type="text" class="form-control" id="contestCode" name="contestCode" required > My jQuery Snippet which checks for keyup event and paste event $('#contestCode').on({ keyup : function(){ checkContestCodeIfExists($(this)); }, paste : function(){ checkContestCodeIfExists($(this)); } }); But when the user clicks on the autoSuggest provided by the browser (Code exists for...

Looking for tool that prevent script to become unresponsive [on hold]


javascript,browser,google-chrome-extension
For a side project I need to generate a lot of data from a WebGL Application. This Web App is mostly a personal tool and I really don't care if my browser become unresponsive (I mean, I know it will). Does someone know a browser/tool/plugin that could allow me to...

Open popup window in specific keyboard language


javascript,jquery,html,browser
I have code like this that open new window in javascript: window.open(URL); But although browser keyboard language at opennig moment for example is 'fa' but new window opens in 'en'. Is there a way that I can open new window in the same keyboard language that browser uses? Thanks....

Does {} consume less memory than [] for nested objects in Javascript?


javascript,browser,requirejs
I had some legacy JS code that creates a giant nested object structure with []. The code goes some like this var data = []; data ["first"] = []; data ["first"]["second"] = []; data ["first"]["second2"] = "hello"; It is about 250+ KB of javascript, which is fairly large. When I...

How to show/hide a jquery script only on Firefox


javascript,jquery,firefox,browser,cross-browser
Trying to show and hide js only on Firefox browser. There are another question about Detect all Firefox versions, but it is not answer of my question so i have asked this question. HTML: <div id="about_me"> This Text color will be change </div> Show this only on Firefox: $("#about_me").addClass("red"); I...

Disable browser adding overflow:hidden on touch screen enabled devices


html,css,google-chrome,browser,touch
I'm having an issue with browsers (maybe just Chrome) adding css rules on touch enabled devices. On a website we've created for a client (to be used exclusively in Chrome), when accessing from their ultrabooks, the scroll bars disappear on elements on the page that had them. The client is...

How to remove/replace cached css and js file from client Browser?


javascript,css,browser,browser-cache
Is there a way by which we can replace or remove the cached css and js files from client browser when they come to the website next time?

Altering window.print() Javascript functionality [duplicate]


javascript,browser
This question already has an answer here: Print <div id=printarea></div> only? 21 answers This question is mostly out of academic interests(and partly because I faced an issue like this before and simply found a workaround, but I want to know the proper way to do it). How does the...

Cannot find the CSS Errors in Chrome


css,google-chrome,browser,web-inspector
I'm trying to debug a website and in Chrome's inspect element I'm seeing 8 errors and 1 warning. The Warning shows up right next to the problem. However, the Errors don't show up anywhere and I can't locate them. Also, the errors and warnings show an underline when I hover...

How to STOP browsers from sharing session amongst tabs?


javascript,jsp,security,browser,spring-security
How to NOT share session between multiple browser tabs ? I am using Spring Security in JSP/Servlet application and I want to know "How can we achieve the behavior with Spring Security where user is forced to login again whenever he changes the browser tab ?". Disclaimer Question is similar...

Will Microsoft Edge support userscripts?


javascript,browser,userscripts,microsoft-edge
Did Microsoft announce whether Edge will support userscripts? Doesn't matter if via plugins (similar to Greasemonkey in Firefox or Tampermonkey in Chrome) or as an out-of-the-box feature.

correct HTML pages won't load in IE10


javascript,jquery,html,internet-explorer,browser
I'm editing someone elses webpage for content, by changing the HTML files on the drive, adding text, comments, wtv. I'm not a web designer, so this is the only way I knew to do it. On most browsers, my changes show, but on internet explorer, sometimes it will revert to...

Is it possible to interact with an arbitrary client peripheral from a webapp?


javascript,browser,camera,peripherals
I know a webapp can access media devices like microphones and webcams, and other hardware like a smartphone's GPS. As far as I know, that's done with tightly constrained protocols for each specific type of device. However, I have an advanced scientific camera. It is only useful with a computer...

close and open browser -selenium C# Visual studio


c#,selenium,browser,close
I want to close and then open the browser without close the driver of selenium, using C# I don't want to: driver.Quit(); How Can I close and the open again the browser Chrome?...

How can I add custom search engine to browser?


search,browser,manifest,provider
Basically what I'm trying to do is to be able to add my own "search engine" (based on PHP and Mod_rewrite) to any browser automatically. Somewhere on the Internet I found that I need to declare a search provider. How can I do this? <link>, manifest or some JavaScript?

Why is it so hard to style