Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-28-2005, 08:19 PM   PM User | #1
oldcrazylegs
Regular Coder

 
oldcrazylegs's Avatar
 
Join Date: Feb 2004
Location: East Moline Illinois USA
Posts: 412
Thanks: 2
Thanked 5 Times in 4 Posts
oldcrazylegs is an unknown quantity at this point
getelementbyid

is getelementbyid only for intermet explorer? if not, which browsers support it?
oldcrazylegs is offline   Reply With Quote
Old 05-28-2005, 09:12 PM   PM User | #2
Bill Posters
Senior Coder

 
Join Date: Feb 2003
Posts: 1,665
Thanks: 0
Thanked 27 Times in 25 Posts
Bill Posters will become famous soon enough
getElementById (the casing is important when in use) is supported by all modern browsers. In general terms that means MSIE5+, NN5/6+, Opera, Mozilla, Firefox, Safari and other browsers developed during the lifespan of those browsers.
Bill Posters is offline   Reply With Quote
Old 05-28-2005, 10:16 PM   PM User | #3
JamieR
Senior Coder

 
JamieR's Avatar
 
Join Date: Oct 2004
Location: United Kingdom
Posts: 3,161
Thanks: 0
Thanked 5 Times in 5 Posts
JamieR is on a distinguished road
This question was asked only a few days ago.....http://www.codingforums.com/showthread.php?t=59888

Jamie.
__________________
-Jamie
JamieR is offline   Reply With Quote
Old 05-29-2005, 03:41 AM   PM User | #4
CrAzY_J
Regular Coder

 
Join Date: May 2005
Posts: 100
Thanks: 0
Thanked 0 Times in 0 Posts
CrAzY_J is an unknown quantity at this point
yeah getElementById is cross browser.

i think www.w3schools.com has a list of functions and their browser support

you could also do:
if(function){
to test if a browser suports that function:

if(getElementById){
//suports getElementsById
}else{
//does not support this function

CrAzY_J is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:56 AM.


Advertisement
Log in to turn off these ads.