473,399 Members | 4,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

IE 6 or other browser

Hi,

I was wonder if it is possible to add an "if...." statement to cover the case of a user using IE 6 or some OTHER terrible browser (my opinion) to go on my site (http://www.rblog.net16.net/) ?

Can this be done with HTML coding?

Thanks.
Sep 7 '10 #1

✓ answered by Ramil Alcibar

Option 1:
I would recommend Paul Irish' IE Conditional Comments but take note it's only for IE.

Option 2:
Use CSS Hacks - lacks some browser targeting but IE's the only headache, no?

Option 3:
Use CSS Browser Selector - you can target almost all browser including its version and even OS. But useless if the user turn off JavaScript. In that case, you can use PHP CSS Browser Selector.

3 1258
Frinavale
9,735 Expert Mod 8TB
HTML is simply a markup language to indicate how the browser should display/render the data. There are no logical statements in HTML (no "if-statements").

You would have to use JavaScript or you would have to detect which browser was connecting to your server-side code in order to use an "if-statement".

-Frinny
Sep 7 '10 #2
JKing
1,206 Expert 1GB
There are conditional comments which you can implement. They are most often used to include an IE specific stylesheet.

Here's a link that explains them Conditional Comments
Sep 7 '10 #3
Option 1:
I would recommend Paul Irish' IE Conditional Comments but take note it's only for IE.

Option 2:
Use CSS Hacks - lacks some browser targeting but IE's the only headache, no?

Option 3:
Use CSS Browser Selector - you can target almost all browser including its version and even OS. But useless if the user turn off JavaScript. In that case, you can use PHP CSS Browser Selector.
Sep 14 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: dogu | last post by:
I'm running Mandrake 10 PHP 4x Apache 2x The code below resides in /home/doug/public_html Apache is configured to allow user home drives and I can successfully load html. If I'm running...
6
by: Jeff T. | last post by:
All, Is there any way to access a separate IE 6.0 browser process via the Javascript DOM ? For example, open IE once. Open IE again (not using File->New). Can the second IE browser/process...
7
by: Szar | last post by:
JS noob. I've seen plenty of browser detection scripts but they all seem to be slightly different and don't really fit my needs. I have various places where if the browser is IE I'd like to display...
10
by: Simon Wigzell | last post by:
Is there any way to create and open a window in javascript so that links in other websites won't "steal" it? I've written a web page with a form for people to enter headlines and URLs from...
56
by: Don G | last post by:
I currently have IE6 and Firefox installed on my machine, and I switch between the two when testing web sites I am working on. It is my understanding that IE5 is still pretty common. Is this...
16
by: Java script Dude | last post by:
To all Mozilla JS Guru's (IE dudes welcome), I have spent the last three years developing complex DHTML applications that must work in IE 5.5sp2+ but I use Mozilla 1.3+** to do all my...
0
by: Philipp Schumann | last post by:
Hiya, we're working on a product in C# which is to be used from the browser---that is, under Windows, any of the three popular browsers (IE, Firefox, Opera). Extending IE should be a breeze with...
7
by: Nathan Sokalski | last post by:
I want to make sure I am doing a browser detection that will work once IE7 is released. My current detection statement (written using VB.NET) is: If Me.Request.Browser.Browser.ToUpper() = "IE"...
3
by: JJ | last post by:
Is there a way to configure visual studio to launch a page in another browser? I realise you can manually tyep the url in another browser, but it would be easier if there was a 'launch in Firefox'...
2
by: Head In A Pan | last post by:
Hello! My JavaScripting is at novice level - and after completing a tutorial on a 'floating layer' I was proud that I got it working on Firefox, Safari, Camino & even IE5 for mac!!! But not IE7!...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.