Hi
i have:
<input type="text" name="T1">
<input type="button">
my question is:
i want that when the user is enter a string in the textbox and click the button.
a url open with the string www.[T1].com for example.
how can i do that???
thanks a lot
Printable View
Hi
i have:
<input type="text" name="T1">
<input type="button">
my question is:
i want that when the user is enter a string in the textbox and click the button.
a url open with the string www.[T1].com for example.
how can i do that???
thanks a lot
hi
in the onclick event of the button call a function which will open the page..
Code:<body>
<script language="javascript">
function ca(){
// opens in the same window
// location.href = "http://www." + demo.t1.value + ".com";
// opens in blank window
window.open( "http://www." + demo.t1.value + ".com", "Sample");
}
</script>
<form name = "demo">
<input type = "textbox" name = "t1">
<input type = "button" name = "b1" value = "click" onclick="ca()">
</body>