How to generate client-side breadcrumbs with JavaScript -
i come java background, , world of javascript still extremely new me.
i want create client side breadcrumbs via javascript (i can't make them server side because of server/cms limitations - mediawiki pretty bleh). i've got in pseudocode, , wondering if pseudocode possible execute in javascript. also, advise in terms of syntax?
pages = [page url, page name] [page url, page name] [page url, page name] [page url, page name] [page url, page name] page url = getpageurl(); amount of pages = pages.length; //java return amount of rows (int = 0; < amount of pages; i++){ if (pages[i][0] = page url) { print <a href="page url"> pages[i][1] </a> } }
Comments
Post a Comment