.pageType0
Description: A string of the current page type.
  • added:0.9.0
    A string ("index", "item", "labels", "search") representing the page type.
`_b.pageType` contains a string of the page type the user is currently on. The value of `_b.pageType` can also be predefined using the `_b.defaults()` method.
String values
  • If `_b.pageType = "index"`, the page type the user is currently on is the "homepage".
  • If `_b.pageType = "item"`, the page type the user is currently on is a page or a post page.
  • If `_b.pageType = "labels"`, the page type the user is currently on is a labels search page.
  • If `_b.pageType = "search"`, the page type the user is currently on is a blog search results page.
simple usage of the `_b.pageType`
In the example below when `alertpageType()` is called there will be an alert of the current page type string [html] <script type='text/javascript'> function alertpageType(){ alert(_b.pageType); } </script> [/html]
DEMO:
Predefining `_b.pageType`
The code is an example of how the page type is predefined. [html] <script type='text/javascript'> window.onload=function(){ _b.defaults({ pageType:"item" }); } </script> [/html]
.blogID4
Description: A string of the blogID.
  • added:0.9.0
    A string representing the Blogger blog ID
`_b.blogID` is a string that contains the blog's ID. This string is also used as a default for other _b methods. The value of `_b.blogID` can also be changed with the `_b.defaults()` method which will not only improve performance but will also provide a more secure blog ID to be used as a default in other _b methods.
simple usage of the `_b.blogID`
In the example below when `alertID()` is called there will be an alert of the blog ID string [html] <script type='text/javascript'> function alertID(){ alert(_b.blogID); } </script> [/html]
DEMO:
Predefining `_b.blogID`
In the code below the blog ID is predefined so will be used as a default in all _b methods. [html] <script type='text/javascript'> window.onload=function(){ _b.defaults({ blogID:"8369227433074681144" }); } </script> [/html]
_b - 0.9.00
test