I want my web page to detect whether the user is using a handheld device and if so allow access to mobile site and if not redirect to main site. I am assuming this would be done in JavaScript. Can anyone help me or point me in the right direction.
EDIT
I would still like to use javascript as it is the language I have used throughout the project.
SOLVED
<script language="javascript">
var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
if (mobile) {
window.location.replace("http://scmweb.infj.
ulst.ac.uk/~b00519427/finalwebsite/homepage.html");
}
else
window.location.replace("http://scm.ulster.ac.uk/");
</script>
SOLVED