Showing posts with label Domain. Show all posts
Showing posts with label Domain. Show all posts

Saturday, September 21, 2013

Getting Page URL using Javascript

2 comments:


Getting Page URLs using Javascript is very useful in real life projects, it's been used by Facebook, Twitter for their share/tweet buttons, because when we click on the share button then we get the URL of the page we are browsing, and that's done using Javascript.


var url= "";
if (typeof this.href === "undefined") {
    url = document.location.toString().toLowerCase();
}
else {
    url= this.href.toString().toLowerCase();
}
Liked the post ? subscribe us with your email to get upcoming tutorials directly in your inbox:

Thursday, March 7, 2013

How to make your blog's custom domain to work without WWW

7 comments:
Few days before i got a new domain for my blog, which is : www.thecodepress.info. Before if anyone will type thecodepress.info, you will be not redirected to my blog. The page will show some error. So when i tried to view my blog without WWW, the page showed error. Then i logged in to my blogger account and then clicked on view blog, then the blog was working. Again i tried it without WWW, it din't worked. I was just trying to know why it was not working without WWW. Here in this post i'll explain you the trick for making your blog to work without WWW.