• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Problems with Javascript in Netscape Navigator

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using a simple MouseOver/MouseOut script that links to another URL that works fine in IE but not in Netscape Navigator (4.0 and 4.7). I've seen this kind of thing done in web pages that I've viewed with Netscape countless times. The only difference with my application of it is that I'm doing it in framed pages and I'm trying to change more that one frame at the same time.
This is an example of the link that I'm using:
<A name="navone" onMouseOver="msover('nav1')" onMouseOut="msout('nav1')" target="_top" onClick="parent.frames[2].location='appslnk.html';
parent.frames[3].location='apps.html';">
Does anyone know what the problem is? Thanks.
 
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,
In the onclick you should separate the two commands by a comma and keep them both in the same inverted commas like this:
onClick="operation1(), operation2()"

Bye,
Terry
[This message has been edited by Terence Doyle (edited July 06, 2001).]
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think Terence are right.
Try using "return true;" after your onMouseMethods.
 
Elizabeth Reynolds
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Thanks to you both. I got it working. In addition to the above (if it was necessary), I found that I had to add the HREF param in Netscape, so I just picked one of the pages for the reference and targeted the main frame.
 
He's dead Jim. Grab his tricorder. I'll get his wallet and this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic