473,807 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE 6 or other browser

14 New Member
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
3 1274
Frinavale
9,735 Recognized Expert Moderator Expert
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 Recognized Expert Top Contributor
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
Ramil Alcibar
10 New Member
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
1749
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 Konqueror and launch the code below, the 'submit' button launches the php file and returns the expected data.
6
7847
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 access the DOM objects of the first, if so, can someone please post a bit of sample code? thanks. -Jeff
7
10074
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 else . For example, if a browser is IE I want to use this CSS file otherwise use a different one and if it's IE make this cell x pixels high else make it y pixels high. I'm sure this is easy, please excuse my stupidity. Steve.
10
2398
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 newspapers. They will want my window to stay there as they surf through various online newspapers. We don't want their popup links to take over my form window! This is a real problem - it renders my web page useless and wastes peoples time.
56
3346
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 correct? Should I be testing my web site with IE5 as well? If so, does anyone know where I might be able to download a copy? Is it possible to install IE5 on a machine with IE6? I know that there are many browsers out there, and that each has...
16
2880
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 development. I have build some cross browser debuggers so my users can send me verbose debug dumps. I have some success but have come to a roadblock with the basic underlying JavaScript models. The only way to get a complete stack in IE is to use the...
0
1195
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 some COM interop, Firefox seems to be possible with lots of messing with XUL and XPCOM. However, I'm desperately looking for information on how to extend Opera, not in terms of skins or styles but in terms of browser add-on development. Do you...
7
3004
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" Then 'Code to use for Internet Explorer browsers Else 'Code to use for browsers other than Internet Explorer End If
3
946
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' option (rather like in that of Dreamweaver). ? JJ
2
5413
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! The 'floating layer' does not float in IE7... it just sits up at the top of the screen - stuck in one place!! Explorer - why do you mock us?!!! ;( I have tried everything - but I am at a loss. I am thinking maybe it's some conflicting CSS or some...
0
9599
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10626
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10374
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10112
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3854
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.