dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] Different files on different broswers

  1. #1
    Join Date
    Jul 2003
    Posts
    138

    resolved [RESOLVED] Different files on different broswers

    I would like to run a WMV file on IE and an MP4 on Firefox or any other browser
    Can anyone show me the code that will do this please.

    thanx..

  2. #2
    Join Date
    Jul 2003
    Posts
    138
    Quote Originally Posted by glenvern View Post
    I would like to run a WMV file on IE and an MP4 on Firefox or any other browser
    Can anyone show me the code that will do this please.

    thanx..
    I have resolved this one...

    <script type="text/javascript">
    var browser=navigator.appName;
    if (browser == "Microsoft Internet Explorer")
    location.href=("videowmv.html");
    else
    location.href=("videomp4.html");
    </script>

    Much to my surprise it works..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles