HTML Code works in Firefox not working in IE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • reemamg
    New Member
    • Nov 2007
    • 5

    HTML Code works in Firefox not working in IE

    Have a piece of code which works in Firefox however doesnt work in IE
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </HEAD>
    
    
    
    <frameset  rows="*" cols="50%,50%" frameborder="NO"  title="Title" border="0" framespacing="0">
      <frame src="../html/b.html" scrolling="0" frameborder="NO" name="left" >
      <frame src="../html/c.html" scrolling="0" frameborder="NO" name="main" >
      </frameset>
    </HTML>
    This is the first file which has two frames and it loads b.html in the first frame and c.html in the second frame

    b.html

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </HEAD>
    
    <BODY>
    <table border=0 cellpadding=0 cellspacing=0>
    	<tr>
    		<td class="td" height=20>
    			<a href="../html/hipage.html" target="main"><input type="button" id="button2" value="Hi Page"  ></a>
    		</td>
    	</tr>
    </table>
    In this file we've a button "Hi page" while clicking on this it should load hipage.html in second frame


    where by default it displays c.html which contains just hello


    this code works in Firefox, the Hi page doesnt get loaded in IE when u click on the button " Hi Page"

    if someone can help me it would be great..........
  • AricC
    Recognized Expert Top Contributor
    • Oct 2006
    • 1885

    #2
    Are you using frames for a class or something of that nature? If not stay away from them they are evil.

    Comment

    Working...