473,387 Members | 1,515 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,387 software developers and data experts.

window._content.document diff?

What's the difference between window._content.document and
window.content.document ?
Are they interchangeable?

Any info would be helpful.

Alex
Sep 11 '05 #1
3 2158
Alex wrote:
What's the difference between window._content.document and
window.content.document ?
They make use of different properties of the window object. The first
accesses an object (or what it assumes to be an object) referred to by a
property called "_content" and the second accessed an object referred to
by a property called "content".

Neither of these properties of the window object are part of any
standard or part of the set of pre-formal standards features common to
web browsers (commonly referred to as DOM level 0). That is; in any
given browser environment they may be host created properties of the
window object, JS programmer created global variables or undefined.

In practice, recent Mozilla/Gecko browsers implement these two
properties. In a standard web page they both represent references back
to the window object (and so are redundant). In a frame document they
appear to both refer to the topmost frame's window object (and so are
redundant).

Older Mozilla/Gecko browsers have the "content" property but appear to
have lacked the "_content" property, suggesting a realisation that
"content" was not such a good name for a global property.
Are they interchangeable?
In a document on a Mozilla/Gecko browser they appear to be effectively
equivalent. On a browser that implements neither and has not executed
any script that would create either they are also equivalent (in that
they would both produce a runtime error).
Any info would be helpful.


Unless you are scripting an add-on specifically for Mozilla/Gecko
browsers you probably don't want to use either.

Richard.
Sep 11 '05 #2
Alex a écrit :
What's the difference between window._content.document and
window.content.document ?
Are they interchangeable?

Any info would be helpful.

Alex


If you want to create a webpage that will appear in the sidebar of a
Mozilla-based browser, then you will need to code the basehref of that
page to be:

window._content

meaning that all your links in that sidebar-ed page will have its target
in the content frame.

window.content could be the same thing (that is what is claimed in a
Gecko DOM reference webpage): I have not checked this.

Gérard
--
remove blah to email me
Sep 12 '05 #3
Gérard Talbot a écrit :
If you want to create a webpage that will appear in the sidebar of a
Mozilla-based browser, then you will need to code the basehref of that
page to be:

window._content

meaning that all your links in that sidebar-ed page will have its target
in the content frame.

window.content could be the same thing (that is what is claimed in a
Gecko DOM reference webpage): I have not checked this.


Example on how to build this:

Sidebar Developer's Guide
http://devedge-temp.mozilla.org/view.../2002/sidebar/

Gérard
--
remove blah to email me
Sep 12 '05 #4

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

Similar topics

0
by: Gill Bates | last post by:
so DOM calls should be calculated from Diff. Possible? How? (some URLs please) I guess this is in most cases not very efficient, but here's why: I have a data Document at the server. From...
10
by: Peter Altenberg | last post by:
is there some way to make the positioning of a layer (div) so that it is centered in the window. so even when you resize the window it stays centered? i would like to do this with CSS just like you...
2
by: Yves-Alain NICOLLET | last post by:
In a HTML page, I have this javascript function: function PopWindow(WinName, WindowUrl) { if (document.ShowDocs.show.checked) popup = window.open(WindowUrl, "MyWindow") else popup =...
8
by: TonyHa | last post by:
Hello, Does any one have using Python to write a Unix "diff" command for Window? Tony Ha.
2
by: # Cyrille37 # | last post by:
Hello, I've to merge a peace of xml in another xml document. Here is an example: The doc: <layout> <win x="0"> <visible>false</visible> <text>coucou</text>
2
by: KC | last post by:
Hi, Every JavaScript executive context has a top-level window and we can use window.open() to open another window ... Does this related to Windows created by click on "File"->"New Window" or...
6
by: Terry | last post by:
I'm working on a web page that consists primarily of an unordered list. When the user mouses over any list item, a div appears immediately to the right of that item, containing supplemental...
5
by: asadhkhan | last post by:
I have the following code which works correctly in IE 6, but in IE 7, Fire Fox 2.0 and Netscape 8 it does not work. I have a main page where a button calls this pop-up and uploads a file once you...
1
by: kailashchandra | last post by:
Below is my code.i want the first division should be load when window is loading. <HTML> <HEAD> <script> function tabFunc(getthis) { var getIn=getthis.innerHTML; var...
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: 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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.