TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
albert albert
NA
524
0
How to force IE11 that it renders as IE 8, javascript
Apr 3 2014 3:43 AM
Hi everybody,
I try to render a html page as IE8 , but I am using IE11.
I try it like this:
[code]
var html = document.getElementsByTagName("html")[0];
if (isIE){
html.className = html.className || "";
if (docModeIE == 5) html.className += " ie5";
if (docModeIE == 6) html.className += " ie6";
if (docModeIE == 7) html.className += " ie7";
if (docModeIE == 8) html.className += " ie8";
};
[/code]
and then for the HTML page:
[html]
<html>
<head>
<!--[if IE 6]> <html class="ie6"> <![endif]-->
<!--[if IE 7]> <html class="ie7"> <![endif]-->
<!--[if IE 8]> <html class="ie8"> <![endif]-->
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
<title>Checkbox exampleTest</title>
</head>
<body>
<p><label>
ok
<input type="checkbox" checked id="chk1" onclick="choosebox1();"/>Clear
this check box for some free advice.</label></p>
<p><label><input type="checkbox" id="chk2" onclick="choosebox2();"/>Check
this check box for a message from our sponsors.</label></p>
<div id="sampText"></div>
</body>
</html>
[/html]
but that doesnt work.
Thank you
Reply
Answers (
2
)
Hide the asp gridview lines using javascript or jquery
Cross Domain Issue , alway going to error, but i got respon