🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.javascript
Article #204

Netscape Blues

#204
From: Rob Sedgwick
Date: Wed, 14 Jul 1999 00:00
32 lines
1542 bytes
I am trying to alter dynamically both the visibility and the href of a link.
I can do both fine in Netscape, but not at the same time.

To alter the href I use:

document.links[0].href = "dogs.htm";

To alter the visibility I have to surround each link by a <div> tag.

<div id="geese1" STYLE="position:absolute; visibility:visible;">

Interestingly this doesn't worth without the position bit - is there a clue
there?

Then I can do:

document.geese1.visibility = "hide";

But the effect of putting the <div> tags in has made:

document.links.length = 0

Is there a solution?

Rob


--
E-mail:    rsedgwick@justinfashanu.demon.co.uk
ICQ UIN:   26075211
Homepage:  http://www.justinfashanu.demon.co.uk
Cockatiel Genetics: http://only.at/cockatiels
Technical Details
Message-ID: <931935618.8032.0.nnrp-03.d4e4e97b@news.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f76f2,acff9074ce6c9bc5,start
X-Google-Attributes: gidf76f2,public
X-Google-Thread: fb3cb,acff9074ce6c9bc5,start
X-Google-Attributes: gidfb3cb,public
From: "Rob Sedgwick" <newsgroups@justinfashanu.demon.co.uk>
Subject: Netscape Blues
Date: 1999/07/14
Message-ID: <931935618.8032.0.nnrp-03.d4e4e97b@news.demon.co.uk>
X-Deja-AN: 500831877
X-NNTP-Posting-Host: justinfashanu.demon.co.uk:212.228.233.123
X-Trace: news.demon.co.uk 931935618 nnrp-03:8032 NO-IDENT justinfashanu.demon.co.uk:212.228.233.123
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Newsgroups: comp.lang.javascript,demon.homepages.authoring
X-Complaints-To: abuse@demon.net