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

property by href

Status
Not open for further replies.

filipel

Programmer
Aug 13, 2007
42
PT
Hi i want to pass the value of a input type="text" by this

<a href="novidades.php?id=dominio.value">Ver Novidades</a>

dominio is the id of the input text
 
What i want to do is if the dominio value <>' ' the value passes through the function,else not and doesnt go to the novidades page.
 
Hi

Not sure what you mean. This ?
Code:
<a href="novidades.php?id=" onclick="if(dv=document.getElementById('dominio').value)this.href+=dv;else return false">Ver Novidades</a>

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top