getPageName

Returns the wiki page name given a url. Uses wikiRoot to determine the base URL, so wikis that aren't something.pbwiki.com may need to set that manually. To get the current page name, there is the variable pageName.

Usage is as follows:

<script>
var aPageName = widget.getPageName('http://mywiki.pbwiki.com/CoolPage');
alert(aPageName);  //will open a pop-up box saying "CoolPage"
</script>


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