473,801 Members | 2,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2197
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
1560
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 this document, views (HTML, SVG, GIF, etc) can be generated and sent to the client.
10
8797
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 can with tables. thanks, ~peter
2
1368
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 = window.open(WindowUrl, WinName) } and further:
8
2801
by: TonyHa | last post by:
Hello, Does any one have using Python to write a Unix "diff" command for Window? Tony Ha.
2
2479
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
2154
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 "File" -"New Tab" in browser's menu bar ? I think window created by "File"->"New Window" and "File"->"New Tab" are independent to each other from JavaScript's point of view. Is this correct ?
6
4173
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 information about that item. Vertically, I'm positioning the div with its top slightly higher than the list item, as determined by the list item's offsetTop value. My problem: If a list item appears near the bottom of the browser window, the div is...
5
7536
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 click the attach it should upload file and close the window and send back control to Main page.. But it is not happening.. CODE: ========= <script LANGUAGE="JavaScript"> if ((window.opener != null) && (! window.opener.closed)) {
1
1752
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 getId=getIn+'_content';
0
9556
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10516
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9101
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7589
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6829
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5479
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5616
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2959
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.