By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,445 Members | 1,160 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,445 IT Pros & Developers. It's quick & easy.

HTML Code works in Firefox not working in IE

P: 5
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
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 1,892
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.