W3C home > Mailing lists > Public > www-html@w3.org > February 2000

Re: text input form resize

From: Yude.Hu <yude.hu@zoomsystems.com>
Date: Mon, 28 Feb 2000 11:29:54 +1100
Message-ID: <38B9C182.89C5EE0A@zoomsystems.com>
To: www-html@w3.org

Sorry for asking the following question if it is not appropriate to this
list. Is it possible to resize the length of the text input display
based on current window width? The size of the text input does not
accept a function, the following initial statement only made one
character length of the text input.

<script language = JavaScript>
function getSize ()
    return Math.floor (innerWidth / 20);
<input type = text size = "getSize ()">

Thank you.

Received on Sunday, 27 February 2000 19:24:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:42 GMT