Technology Programming

Can IE8 Run JavaScript As IE7?

    The JScript Engine

    • While most popular browsers support JavaScript, Internet Explorer uses Microsoft's own version of ECMAScript known as JScript. IE8 launched with support for a new version of JScript that included changes to make it more standards compliant. This made it easier for programmers to write cross-browser code, but the differences between IE8's version 5.8 of JScript and IE7's version 5.7 introduced problems for programmers wanting to make their code work in both versions.

    Internet Explorer Document Modes

    • The solution Microsoft devised was to offer multiple document modes in IE8. Before rendering a page, IE8 first checks the document mode defined either by the web page or the browser. The document mode determines the rules that the browser follows. If the document mode is "IE7 Standards," for example, it emulates IE7's rendering engine and JScript engine.

    Defining a Page's Document Mode

    • A web developer may choose to define an appropriate document mode within the page itself by adding a meta tag like the following:

      <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >

    Debugging JavaScript Within IE8

    • Developers may also change the document type to test different versions of JScript interpretation by using the developer tools in IE8. Pressing F12 in IE8 will open up the developer tools and the document mode may be changed through the appropriate drop-down box.

Related posts "Technology : Programming"

Differences Between Byte Array Vs. String

Programming

Web Design Company UK/

Programming

Develop A Quality Plan With These Self Help Tips

Programming

TMediaPlayer: What track am I on?

Programming

How You Can Prove Your Expertise

Programming

Furniture Advice And Tips And Also Hardwearing. Property Searching Wonderful

Programming

Web Design Fort Lauderdale Business

Programming

Hire Web Designer and Diminish Development Expenditure

Programming

Web Masters.

Programming

Leave a Comment