Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Some hyperlinks not working in IE


Some hyperlinks not working in IE

Reply
  #1 (permalink)  
Old 11-12-06, 08:46 PM
greymoose greymoose is offline
Newbie Coder
 
Join Date: May 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Some hyperlinks not working in IE

I've got a site at www.martoncentral.co.nz where a set of buttons at the top of the page are really just hyperlinks. They work fine in Galeon and Firefox but not in IE. The other hyperlinks on the page are fine in all three browsers.

Here is a sample of the code I used for the buttons/links:
Code:
<a href="/index.html" alt = "Home"><button name="butHome" class="top"><b>Home<br></b></button></a>
I'm relatively new at this but I do realise that some browsers don't support some parts of HTML. I'm surprised to be running into problems with a simple hyperlink though. (Unless I haven't made it as simple as I think I have.)

Thanks in advance for your thoughts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-12-06, 09:58 PM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
The following is a way to get this to work in IE, without using an onclick event (it should work in all browsers) -
Code:
<form action="/index.html">
<button type="submit" name="butHome" class="top"><b>Home<br></button>
</form>
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???

Last edited by mab; 11-12-06 at 10:05 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-13-06, 02:15 AM
greymoose greymoose is offline
Newbie Coder
 
Join Date: May 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Mab, that was exactly what I needed to know.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
footer working in some browsers but not all pkcidstudio CSS 6 08-25-06 09:39 AM
error installing perl - c compiler not working abtimoteo Perl 2 01-09-05 12:20 AM
css hyperlinks nick1 CSS 2 06-17-04 04:25 PM
calendar working until months changed bitesize JavaScript 1 01-13-04 02:50 PM
If/else statement working...but not working mdhall PHP 13 10-16-03 09:47 AM


All times are GMT -5. The time now is 09:18 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.