WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 nextSibling, Kenneth Solberg, February 26, 2004
     Re:nextSibling , Brian R. James, February 27, 2004
     Re:nextSibling, Guilherme Blanco, February 27, 2004

Subject: nextSibling From: Kenneth Solberg Date: February 26, 2004

Consider this markup fragment:

  <a href="#">Online Resources</a>
   <ul class="nav_lvl4">
     <li><a href="#">Accessories</a></li>

And this piece of script:

document.onclick = va_nav;
function va_nav()
var e = window.event.srcElement;
  var s = e.nextSibling;

Why doesn't the alert show "UL" when I click the anchor?

Thanks in advance!

Kenneth Solberg
Tape International AS


Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.

View All Messages
Back to WebFX