Description: A string of the blogID.
`_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.
-
added:0.9.0
A string representing the Blogger blog ID
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]
[js]
ReplyDeletewindow.onload = function() {
_b.defaults({
blogID: "8369227433074681144"
});
}
[/js]
`_b.pageType`
Delete`[html]<div class="test"></div>[/html]`
Delete[html]<div class="test"><div>Random Test</div></div>[/html]
[html]
<div class="test">
<div>Random Test
</div>
</div>[/html]
`var div = jj;`
ReplyDelete