inSB

Given an element, the function returns a boolean: true if the element is inside the sidebar, false if it is not.

Usage:

<script>
if (!inSB(elem)) doSomething(); //run doSomething() if elem is not in the SideBar
</script>

elem can either be an HTML element or a string id referencing an element.


Page Information

  • 1 year ago [history]
  • View page source
  • You're not logged in
  • No tags yet learn more

Wiki Information

Recent PBwiki Blog Posts