473,385 Members | 1,311 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Newbee to Web-programming

After the server processes the page, the server sends a rendered
HTML/text/Script client-side code down to the browser. I'm wondering
how (in what order) does the browser interpret the text document. Does
the browser do the HTML first and then anything between the script
tags or is it the other way around. What would be the sequence of
events in IE and in Netscape?

I would appreciate if someone can shed some light on this.

Thank you,
Anand.
Jul 23 '05 #1
2 924
Andy wrote:
After the server processes the page, the server sends a rendered
HTML/text/Script client-side code down to the browser. I'm wondering
how (in what order) does the browser interpret the text document. Does
the browser do the HTML first and then anything between the script
tags or is it the other way around. What would be the sequence of
events in IE and in Netscape?


Unless explicitly told to do it differently, it processes it in the
order its sent to the browser.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
ak******@guidemail.com (Andy) writes:
After the server processes the page, the server sends a rendered
HTML/text/Script client-side code down to the browser. I'm wondering
how (in what order) does the browser interpret the text document. Does
the browser do the HTML first and then anything between the script
tags or is it the other way around.
Generally, the browser parses the HTML from the begining, and when it
meets a script element, it executes the script at that point. That is
why "document.write" inserts its content right after the script
element.

Accessing parts of the page already parsed, might be possible, but
since the DOM has not been fully build, I would not feel absolutely
certain about accessing it before the page has loaded.

If you give a script element the attribute "defer", then the browser
is allowed to defer execution of that script until later, but no later
than the execution of the next script element on the page.
What would be the sequence of events in IE and in Netscape?


I believe they agree completely about the order, as does all other
scriptable browsers.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Newbee | last post by:
Hi ! Let's say that this is the folder on the server: /web/firstDir/secondDir/images/image.gif where i have stored my pictures. I have tryed with apsolute and relative paths but i can't display...
2
by: Newbee Adam | last post by:
some said that .NET app can run on any program where rutime exists. What is "runtime" in this sense? will I have to install runtime or .net framework or .NET support on an xp machine for a...
4
by: PerryC | last post by:
All, 1. Do the following codes seem ok? 2. If so, then how do I pull the value of YOE1 and YOE2 into my report? (to do some further calculations) ...
2
by: Martin Hvidberg | last post by:
Dear list I have found a declaration like this: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <math.h> #include "ectemp.h"
9
by: EMW | last post by:
I have created a page in aspx and after a click on a button, a new page should open. How is this possible? I tried it doing it like in vb.NET with opening a new form, but it doesn't work. rg,...
4
by: ares | last post by:
Hi! I'm a new bee in asp.net. I have a page that includes a table and a repeater web control, they have been filled dynamically with a stored procedure. So I would like to print this page with a...
1
by: Danny Ni | last post by:
Hi, I have questions: (1) To establish web garden, a machine must have mutiple processors. Right? (2) To use ASP.Net session in a web garden environment, process model must be out-of-process,...
0
by: JR | last post by:
I have developed a couple of web sites that I now have created a single default.htm to link to both of them. They will both reside on the same web server in different directories under the...
2
by: Mel | last post by:
I have a selection box with 3 values. what i need is to pass 3 urls to a function that has a switch statement and based on the selection index goes on one of the tree urls. Question is how do i...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.