Sizing combo boxes

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
3.14
Forum Commoner
Posts: 28
Joined: Mon Sep 08, 2003 12:17 am

Sizing combo boxes

Post by 3.14 »

How do I specify the size of combo boxes, command buttons, text boxes etc.

Currently the length of the longest value is determining the length of the box. I want to be able to specify the length.

Any help is greatly appreciated! :D
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

<select name="whatever" style="width:100px;">
3.14
Forum Commoner
Posts: 28
Joined: Mon Sep 08, 2003 12:17 am

Post by 3.14 »

Thanks.

Another question...

How do I make a button to close the web page?
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

Code: Select all

<form action=javascript:window.close() method="post" name="form1">
<input type="submit" value="Submit" name="submit">
</form>
I believe..
3.14
Forum Commoner
Posts: 28
Joined: Mon Sep 08, 2003 12:17 am

Post by 3.14 »

LiLpunkSkateR wrote:

Code: Select all

<form action=javascript:window.close() method="post" name="form1">
<input type="submit" value="Submit" name="submit">
</form>
I believe..

Code: Select all

<BUTTON style="width:50px;" onClick="window.close()">Close</BUTTON>
I found this way too. 8)
Post Reply