|
-
Jul 18th, 2005, 05:34 PM
#1
Thread Starter
Addicted Member
Command buttons
i was wondering if it is possible to have a command button link to a URL which is typed in a text box.
any help would be great
thanx
-
Jul 19th, 2005, 12:21 AM
#2
Addicted Member
Re: Command buttons
hi welcome to the forums,
are you asking something like this.,
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()">
</form>
</body>
Last edited by kishore.kr; Jul 19th, 2005 at 12:32 AM.
--Kishore...
-
Jul 19th, 2005, 11:46 AM
#3
Thread Starter
Addicted Member
Re: Command buttons
oops sry....this is vb6.... so i need sumthing like
Private Sub command1_Click()
the code here
End Sub
-
Jul 19th, 2005, 11:38 PM
#4
Addicted Member
Re: Command buttons
hi,
then you have posted the question in wrong section of the forum. if you have posted in classic visual basic section, then you would have got your answer a long before.
since i don't have exact idea how it can be done in vb, try posting it in the classic visual basic section.
--Kishore...
-
Jul 20th, 2005, 12:17 AM
#5
-
Jul 20th, 2005, 12:28 AM
#6
Addicted Member
Re: Command buttons
mendhak :
that is a nice example. hope it solves the requirement.
--Kishore...
-
Jul 20th, 2005, 01:03 AM
#7
Thread Starter
Addicted Member
Re: Command buttons
yes it works great...thank you...i am sry tho for being in the wrong section as i am new to this..once again thanx n sry
-
Jul 20th, 2005, 02:05 AM
#8
Re: Command buttons
 Originally Posted by kishore.kr
mendhak :
that is a nice example. hope it solves the requirement.
It's one of the only APIs I could ever remember from my VB6 days. :reminisces:
Of course, it's better in .NET now, you have System.Diagnostics.Process
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|