Is there a way to, when the url changes, intercept it and take the user to a different page?

For example, if the user types in "facebook:" and then some other random words, like "facebook: eating my dinner" it takes the user to the facebook share page instead of just googling those words?

Seems unlikely for security reasons etc but im curious......

Yes, but it is url rewriting on your server side, not on JavaScript.

ahh okay, not what i would need. thanks anyway :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.