Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Missing cursor in Netscape

Status
Not open for further replies.

EwS

Programmer
Dec 30, 2002
398
US
When I load my page, I want to put the cursor in one of the text fields - I'm doing it in the onLoad event. It doesn't work in Netscape (works in Explorer, Mozilla, Opera, Safari). What is weird is that in Netscape when I click in any of the text fields, I don't see the cursor, but it's there because I can type somehting into the field. It's happening only on one page - I see the cursor on my other pages. I don't see how page-specific code could interfere with the cursor.
 
could you provide some code?

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
function setDefaults() {
document.edit.customer.focus();
}

<body onLoad=setDefaults();>
<form name="edit">
<input type="text" class="edit" name="customer" id="customer" size=18 maxlength=15>
...
</form>
</body>
 
That code worked for me in:

Netscape 7.2
Internet Explorer 6.0.2800
FireFox 1.0 PR
Netscape Communicator 4.8

I saw a 'blinking cursor' in every instance.

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
Thanks cLFlaVA - there must be something specific to this page (I gave you just an excerpt) that's causing the problem, I'll look at it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top