473,698 Members | 2,556 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to have button launch web page

5 New Member
I am trying to figure out how to click on a button and have it open a web page. I am not asking for the logic to handle the click. Moreover I am looking for the logic that I need to run to actually launch the web page. I have found quite a bit of documentation talking about how to open a file using a URL but almost none talking about how to have a button launch to a web page. I want to code a button to a specific web page and then open it if you click on that button.
Jun 26 '07 #1
6 2324
r035198x
13,262 MVP
I am trying to figure out how to click on a button and have it open a web page. I am not asking for the logic to handle the click. Moreover I am looking for the logic that I need to run to actually launch the web page. I have found quite a bit of documentation talking about how to open a file using a URL but almost none talking about how to have a button launch to a web page. I want to code a button to a specific web page and then open it if you click on that button.
Where is this button supposed to be on?
A JFrame? An applet? Another web page?
Jun 26 '07 #2
efultz
5 New Member
Where is this button supposed to be on?
A JFrame? An applet? Another web page?
I am building a web page using Sun's Java Studio. I have a grid panel which I am planning on using as a navigation bar (it will be on the left side). In this I know I can put hyperlink objects that will launch a web page. But I am trying to make it appear as buttons in order to delineate between each entry - vs having just the words. It will, also, make for a larger space on which to click. I suppose, if I could figure out how to outline the hyperlink object I might accomplish my goal. But I figured it couldn't be all that hard to have a button launch a web page - and it appears I may be wrong there.
Jun 26 '07 #3
efultz
5 New Member
I am building a web page using Sun's Java Studio. I have a grid panel which I am planning on using as a navigation bar (it will be on the left side). In this I know I can put hyperlink objects that will launch a web page. But I am trying to make it appear as buttons in order to delineate between each entry - vs having just the words. It will, also, make for a larger space on which to click. I suppose, if I could figure out how to outline the hyperlink object I might accomplish my goal. But I figured it couldn't be all that hard to have a button launch a web page - and it appears I may be wrong there.

I figured out how to get an outline on my hyperlink entries. But I would still like to know the correct method for having a button launch a web page.
Jun 26 '07 #4
r035198x
13,262 MVP
I figured out how to get an outline on my hyperlink entries. But I would still like to know the correct method for having a button launch a web page.
You still haven't answered my question you know.
Jun 27 '07 #5
efultz
5 New Member
You still haven't answered my question you know.
Oops - you are correct. The button would be on a panel grid that would sit within a web page.
Jul 1 '07 #6
r035198x
13,262 MVP
Oops - you are correct. The button would be on a panel grid that would sit within a web page.
So you have an applet? Use the actionPerformed method to open the page.
Jul 2 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

10
1756
by: scott | last post by:
From an asp page, i'm trying to auto-open a pop-up page if something exists. I can do this within access via vba using below code. Anyone know how I could modify the below js to auto-lauch from asp? sPage = "javascript: resizeTo(478,500);moveTo(130,150);document.location.href='http://myserver/myweb/mypopup.asp" sApp = "c:\Program Files\Internet Explorer\iexplore.exe" sCommand = sApp & " " & sPage & "'"
2
1150
by: nss | last post by:
hi, I created web page ( .aspx) then i imported datagrid on that page with dataset. But when i launch the page on web server the datagrid is invisiable. Can someone help me how i can make it visible when launch on web server. regards, Sam
5
3606
by: Mr Gordonz | last post by:
Hi all, I want to put a button on a page, and when the user clicks it, the standard Windows "Open File" dialogue box opens, and the user can browse/select a file on their PC. Having selected a file, the user clicks Open, and I then want to capture the file path and name in a string variable. Finally, I want to upload the file to the server. BUT: I don't want to use an <input type="file"> control.
7
2815
by: IntraRELY | last post by:
I am using the following command to launch and .NET VB Executable, which is a simple Windows Form (printCheckClient.exe). I am using a HyperLink Control and works perfect. hlPrintChecks.NavigateUrl = "javascript:var newWindow =window.open('printCheckClient.exe', 1,'height=350,width=350,menubar=no,status=no,toolbar=no')" I want to use a standard ASP.NET Button, but not sure what method to use. Is there a way to accomplish this. I may not...
4
18650
by: Patrick Flaherty | last post by:
Hi, Experienced programmer but new to PHP. Moreover I'm to use PHP with Xoops on top (this adds object orientation?). I don't seem to find a xoops Usenet group? Whatever the case (and presumably a Xoops property): how does one disable (grey-out) a button?
7
6164
by: dinamointer | last post by:
Could you help me in this problem: I want to launch an exe file(executable jar file) from a web page. I use jsp...and i cannot use vbScript...? could u tell me how should i do it? Thanks
0
841
by: madhavarao | last post by:
Auto Launch of Setup projects when we click the finish button
1
3003
by: Larry Rebich | last post by:
I'm trying to launch the user's email client using 'MailTo:'. So I put a button on an aspx page and wrote some .vb code to use 'Mailto:' and it works on my development machine when I press the button. But when I publish the site to our server, pressing the button does not launch the email client on the user's computer. Is there a way - some code - that I can launch the user's email client using MailTo?
3
11657
by: elrondrules | last post by:
Hi I am pretty new to PHP and hence need your help!! I need to write a PHP that shows the user a button (button1) and a series of check boxes and another button (button2).. If the button1 is clicked then I should launch a python script running on the same linux box as the PHP..
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8901
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2336
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.