467,907 Members | 1,365 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,907 developers. It's quick & easy.

HTML Code works in Firefox not working in IE

Have a piece of code which works in Firefox however doesnt work in IE
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE> New Document </TITLE>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  6. <META NAME="Author" CONTENT="">
  7. <META NAME="Keywords" CONTENT="">
  8. <META NAME="Description" CONTENT="">
  9. </HEAD>
  10.  
  11.  
  12.  
  13. <frameset  rows="*" cols="50%,50%" frameborder="NO"  title="Title" border="0" framespacing="0">
  14.   <frame src="../html/b.html" scrolling="0" frameborder="NO" name="left" >
  15.   <frame src="../html/c.html" scrolling="0" frameborder="NO" name="main" >
  16.   </frameset>
  17. </HTML>
  18.  
  19.  
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

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE> New Document </TITLE>
  5. <META NAME="Generator" CONTENT="EditPlus">
  6. <META NAME="Author" CONTENT="">
  7. <META NAME="Keywords" CONTENT="">
  8. <META NAME="Description" CONTENT="">
  9. </HEAD>
  10.  
  11. <BODY>
  12. <table border=0 cellpadding=0 cellspacing=0>
  13.     <tr>
  14.         <td class="td" height=20>
  15.             <a href="../html/hipage.html" target="main"><input type="button" id="button2" value="Hi Page"  ></a>
  16.         </td>
  17.     </tr>
  18. </table>
  19.  
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..........
Mar 11 '08 #1
  • viewed: 1836
Share:
1 Reply
Expert 1GB
Are you using frames for a class or something of that nature? If not stay away from them they are evil.
Mar 11 '08 #2

Post your reply

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

Similar topics

8 posts views Thread by Terry | last post: by
7 posts views Thread by Coder | last post: by
16 posts views Thread by Eric | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.