Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: Re: Remove options from a Select object - June 29, 1998 at 03:35:17

You are here: irt.org | BBS | Re: Remove options from a Select object [This BBS is closed]

Posted by Martin Webb on June 29, 1998 at 03:35:17:

In Reply to: Remove options from a Select object posted by Rachel on June 24, 1998 at 09:08:04:

: I have a piece of Javascript code to remove options from a select box.

: for (var k=0; k: {
: formname.selectname.options[k]=null;
: history.go (0);
: }

: For some reason, it doesn't work well. There always a few options left in the box.
: Does anyone know why? Thanks.

The line:

history.go ()

Reloads the current page, thus undoing the chnages to the select options list.
: Rachel


Follow-ups:

You are here: irt.org | BBS | Re: Remove options from a Select object [This BBS is closed]

©2018 Martin Webb