I
Iver Erling Årva
I have this window where I open a modal dialog window using the code:
newwin=window.showModalDialog(url, "popup", features)
where features are
dialogLeft:"+x+"px;dialogTop:"+y+"px;dialogWidth:"+w+"px;dialogHeight:"+h+"p
x;center:0"
In the window that opens I call a function - setVar() in the body onLoad
event.
The setVar() function contains the following code:
this.form.Name.focus();
this.form.Name.select();
but although the window seem to have focus, I cannot see the cursor in the
form.Name textbox, and if I try to type something nothing happens. If I do a
Alt-tab back to the other window and then back again to the modal window,
the cursor is blinking in the Name field and I can type as normal. What is
causing this behaviour, and what can I do to fix it?
Can anyone please help with this?
Thanks!
(e-mail address removed)
Windows XP SP1 IE6 SP2
newwin=window.showModalDialog(url, "popup", features)
where features are
dialogLeft:"+x+"px;dialogTop:"+y+"px;dialogWidth:"+w+"px;dialogHeight:"+h+"p
x;center:0"
In the window that opens I call a function - setVar() in the body onLoad
event.
The setVar() function contains the following code:
this.form.Name.focus();
this.form.Name.select();
but although the window seem to have focus, I cannot see the cursor in the
form.Name textbox, and if I try to type something nothing happens. If I do a
Alt-tab back to the other window and then back again to the modal window,
the cursor is blinking in the Name field and I can type as normal. What is
causing this behaviour, and what can I do to fix it?
Can anyone please help with this?
Thanks!
(e-mail address removed)
Windows XP SP1 IE6 SP2