SEO Forums: Your seo discussion forum  
Welcome, Unregistered.
You last visited: Today at 02:28 AM
Tags:



Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-27-2008, 03:43 PM
FAQ server
Guest
 
Posts: n/a
Default FAQ Topic - Why doesn't the global variable "divId" always refer to the element with id="divId"? (2008-05-26)



-----------------------------------------------------------------------
FAQ Topic - Why doesn't the global variable "divId" always
refer to the element with id="divId"?
-----------------------------------------------------------------------

Microsoft introduced a shortcut that can be used to reference
elements which include an ID attribute where the ID becomes a
global variable. Some browsers reproduce this behaviours but
some, most notably Gecko-based browsers (Netscape and Mozilla),
do not. The best approach is the ` document.getElementById `
method, which is part of the W3C DOM standard and implemented
in modern browsers (including IE from version 5.0). So an
element with ` id="foo" ` can be referenced
with:-

var el = document.getElementById("foo");

http://developer.mozilla.org/en/docs...th_the_W3C_DOM

http://www.jibbering.com/faq/faq_not....html#FAQN4_41


--
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at http://jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers. The sendings of these
daily posts are proficiently hosted by http://www.pair.com.

Reply With Quote


  #2 (permalink)  
Old 08-03-2008, 09:17 PM
Junior Member
 
Join Date: Aug 2008
Posts: 1
Post Up with Liberalism

China Angered by U.S. Lobbying on Rights
Index of /
Reply With Quote


Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:28 AM.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Great Seo Blog at SEONOTEPAD.COM