Hi all,
I'm having problems with a bit of javascript in one of the pages on a site I'm working on. I have a glossary on the site, and when a word is selected from any page, the Glossary pops up in a new window and goes straight to the word that was just selected. Well, that's what it does 99% of the time - the first time you go in (IE and Firefox), it goes to a random section of the glossary, yet re-selecting the same link, takes you to the right word - any ideas??
THE CODE:
The link:
<a href='#' onclick='newwindow("<A href="
http://www.websitename.com/#Example","Glossary");return">
http://www.websitename.com/#Example","Glossary");return false'>Click here</a>
The javascript function:
function newwindow(URL,WindowName)
{
var NewWindow
NewWindow=window.open(URL,WindowName,'width=600,he ight=620,titlebar=no,toolbar=no,scrollbars=yes,loc ation=no,status=no,menubar=no,resizable=no');
NewWindow.focus();
}
Extract from glossary code:
<td class='Glossary'><A Name="
Example"><b>Description</b></a></td>
Thanks!