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

get form field values by pressing a button ? 1

Status
Not open for further replies.

sa5cha

Programmer
May 29, 2001
34
DE
Hi,

I need some help. I am absolutely not familiar with js.

I want to dial out of my browser. The button CallNow will initiate a phone call and dial the number 555-111-222.

My Problem is, how may I get the value of my inputfield "phonenumber" into my calling string "top.location.href='phone:##INSERT STRING HERE###'" ?

May some help me, please ?

Greetings Sascha


<form name="intraphone">
Call the following number: <input type="text" name="phonenumber">
<input type="button" name="CallNow" value="Call Now" onClick="top.location.href='phone:555-111-222'">
</form>
 
Thanks for your help. It works now.

Greetings Sascha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top