how do I link an html file to a java script file
I have a mobile.js file for detecting mobile devices. The code is
and I have the folllowing link in my html file to link to this file;
Either the link isn't working or I have set up the js file wrongly. Can someone show me what needs to be done to get them working.
try to replace all the exit() with return and window.location with location.href
Last edited by Padonak; 07-05-2012 at 12:44 PM.
Thanks for your reply. I'll give it a go.
Originally Posted by Padonak
I'll post again if it doesn't work.
mobile or mobiles?
Any console errors?
Thanks for your reply. Silly me!
It works fine now.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread