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

Get Value from txt Input onBlur

Status
Not open for further replies.

kkffjjman

Technical User
Feb 7, 2008
11
0
0
CA
I have an input box where the user enters a sku. When this has been entered, and the cursor leaves the input box, I need to pop up a window with a new url that includes the sku

Any ideas?

 
Well, you've pretty much in english stated exactly what you are wanting to do. Now just put it to code.
Code:
<input type="text" onblur="window.open('abc.html?sku=' + this.value)" />

On a side note, opening a new window every time a textbox loses focus could become quite annoying. I don't know how popup blockers would react to this either, so you should probably keep that in mind.

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson

[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top