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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remove focus from alert ok button

Status
Not open for further replies.

theoryofben

IS-IT--Management
Aug 25, 2001
149
US
Hello

I'm not great with javascript, so I don't know if this is even possible.

I have a page that accepts barcode scans. If the item has already been scanned, I fire an alert telling the user.

The problem is that the barcode scanner sends an enter command after each scan. If the user does not see the alert and scans another item, it will dismiss the alert.

Is there a way to disable focus on the ok button?

Thanks.

________________________________________________
"I have not failed. I've just found 10,000 ways that won't work."-Thomas Edison

 
No. If this is an IE-only site, you could define your own popup using showModalDialog().

Adam

for(ring=0;ring<rosie;ring++){pocket[ring]='posie';ashes*=2;fall--}
 
What about having the page continue processing until it received an enter command? Then you know its finished processing, then can display the message to the user?

Just a thought
 
Thanks guys. This is for our intranet, so it will be IE6, I'll try showmodaldialog

________________________________________________
"I have not failed. I've just found 10,000 ways that won't work."-Thomas Edison

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top