Forum Moderators: open
But I am an accountant, so I dont know how to do that.
Good :)
I suggest that, before you learn how to code, you take a little time to learn about accessibility, platform (in)dependence and cross-browser (in)compatability
In particular, note that 'browsers' are also known as 'user agents', primarily because they belong to the user
Mozilla.org: Target the standards and not particular browsers [developer.mozilla.org]
While the period from 1994-2000 was dominated by incompatible non-standard browsers from Netscape and Microsoft, today the dominating factor in web development are the standards proposed by the World Wide Web Consortium (W3C). Standards are important for web developers due to the increased flexibility, power of presentation, support for users with disabilities to name just a few reasons. Targeting your web content to particular vendors ignores the possibility that other browsers which support the same standards may be introduced in the future.
But presently I m in urgent need to now to allow Internet Explorer to be used for my site. It can have the add-on to directly download the music content with single click, which Firefox is not allowing at this moment.
It would be great if someone can help me getting the HTML codes and direct me where to add them on my site (its basically a wordpress blog) so that Internet Explorer user can be forced to use Firefox.
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 (shree49 edition)"before downloading your files. It's fairly easy to do, so be sure to look for it on your logs.
What the folks here are trying to tell you is that you are asking how to implement the wrong specific solution to your problem... Among other reasons, you can't force people to change browsers, they'll just leave your site and not come back. Blocking IE, you'll likely lose 75% of your potential revenue; Is that not a concern?
Best,
Jim
<html>
<head>
<title>my Page</title>
<script language="JavaScript">
alert(navigator.userAgent);
alert(navigator.appName);
</script>
</head>
<body>
<center>My Site</center>
</body>
</html>
<script type="text/javascript>
if(navigator.userAgent.indexOf('MSIE')!=-1){location.replace('newurl.html')}
</script>
However, if someone sees what you're doing, they can turn off javascript and then they would not get the new page.
The result can be better achieved with server-side scripting, although if the site is hosted by Wordpress I'm not sure what server side scripting they will allow. The point still remains that that this is like using a massive bomb to get rid of a few ants in your house.
like using a massive bomb to get rid of a few ants in your house
Indeed... and, considering that the ants in question are those intent on downloading music, I suspect that very few will lose their way simply because Firefox doesn't expressly enable "single click" access
I think that it is completely unrealistic to expect a newbie to overcome the 'rule of thumb' that says "if its on teh interwebs, its in the public domain"
head section: <!--[if IE]>
<meta http-equiv="refresh" content="0;url=/no-ie-please.html">
<![endif]--> But I would like to emphasize the caveats mentioned by others above, there are some very significant downsides to your idea (not least shutting out 80 to 90% of your potential user base), and I would strongly encourage a different approach.