![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archiveVariable problem with multi-use function
From: Art X <Xlectric@webtv.net>
Date: Mon Jun 13 2005 - 18:21:56 CEST
The reason for this has do to with the nature of WebTV and will be
I'm trying to create a function that will put focus to a form element
For a one time use, this works:
function showDiv()
Both divisions have these embedded CSS rules:
#visiblediv, #hiddendiv {
And in the body:
<a href="javascript:void();" onclick="openDiv(); return false;">Display
<div id="visiblediv">
<div id="hiddendiv">
However, I want to use this function more than once. When I try this it
function showDiv(in_foc)
Then in the body:
<a href="javascript:void();" onclick="openDiv('theinput'); return
hiddendiv becomes visible but the focus() does not work. I realize it
Later, Art.
|