mozilla

Compare Revisions

Migrate apps from Internet Explorer to Mozilla

Change Revisions

Revision 132635:

Revision 132635 by BobChao on

Revision 132636:

Revision 132636 by Johndr on

Title:
Migrate apps from Internet Explorer to Mozilla
Migrate apps from Internet Explorer to Mozilla
Slug:
Migrate_apps_from_Internet_Explorer_to_Mozilla
Migrate_apps_from_Internet_Explorer_to_Mozilla
Tags:
DOM, HTML, NeedsMarkupWork, NeedsUpdate, "Web Standards", "Web Development"
DOM, HTML, NeedsMarkupWork, NeedsUpdate, "Web Standards", "Web Development"
Content:

Revision 132635
Revision 132636
n113    <pre>n113    <pre class="eval">
n119    <pre>n119    <pre class="eval">
120 
n123                                   : document.all[aID];n122                                   : document.all[aID]);
tt124</pre>
125    <p>
126      Or another way is to use the <tt>||</tt> operator:
127    </p>
128    <pre class="eval">
129function getElement(aID){ 
130  return (document.getElementById) || document.all[aID]);
131}

Back to History