Reply
Anchor Tags with Javascript Not work in IE6
Old 10-31-2007, 05:26 PM Anchor Tags with Javascript Not work in IE6
Super Talker

Posts: 116
Trades: 0
Hey all,

I'm having a problem with anchor tags in IE6. Again, I inherited the code.

On page one there's a link that calls up a JavaScript function to open a glossary in a window, and then go to the anchor tag in that glossary.

Here's the code on the page that opens the glossary:

<a href="javascript:glossary('S')">Smith Barney Account</a>

Here's the anchor tag in the glossary page:

<a name="S"></a>
<p> <span class="h14s">Smith Barney Account:</span><br> The Smith Barney account on which the AFT instruction is established.
</p>

Here's the glossary function:

function glossary(l) {
var glossaryWindow = window.open(
"AFTGlossaryPlain.html#" + l,
"Glossary",
"toolbar=no,location=no,status=no,menubar=no,scrol lbars=yes,resizable=no,height=200,width=600"
);
glossaryWindow.focus();
}

I just don't know what to do. It works great in FireFox, but not in IE6. This isn't the only link I'm having a problem with on the page.

Any clues?

Thanks
Donna
DonnaZ is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-31-2007, 06:38 PM Re: Anchor Tags with Javascript Not work in IE6
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,942
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Change name="S" to id="S", see if that works.

If not, the only thing I can see is a space between the two ls in scrollbars.

Throw it up on a URL somewhere. Maybe it's throwing a Javascript error that we're not seeing.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 11-01-2007, 11:14 AM Re: Anchor Tags with Javascript Not work in IE6
Super Talker

Posts: 116
Trades: 0
Adam,

Thanks. I'll give it a try. I'm working from home today as I'm under the weather.

Thanks again,
Donna
DonnaZ is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Anchor Tags with Javascript Not work in IE6
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.09262 seconds with 13 queries