This is a discussion on "Javascript Hyperlink" within the JavaScript Forum section. This forum, and the thread "Javascript Hyperlink are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Javascript Hyperlink
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Javascript Hyperlink
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! |
|
|
|
||||
|
Re: Javascript Hyperlink
I'm not good enough at JS yet to really parse this for you, sorry. But I will say, I'd check the quotation marks in the link.
|
![]() |
| Tags |
| javascript, hyperlink |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hyperlink Rollovers | crackafaza | Web Page Design | 3 | Aug 24th, 2007 11:43 |
| Hyperlink buttons | scoopslack | Flash & Multimedia Forum | 3 | Mar 8th, 2007 13:02 |
| Targetting two frames from one hyperlink | Paul.Yeoman | Web Page Design | 5 | Feb 11th, 2006 21:41 |
| Returning result from db as a hyperlink | lobster1983 | PHP Forum | 2 | Sep 18th, 2005 19:59 |