473,396 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to have button launch web page

5
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 2316
r035198x
13,262 8TB
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
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
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 8TB
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
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 8TB
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
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...
2
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...
5
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...
7
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....
4
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...
7
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
by: madhavarao | last post by:
Auto Launch of Setup projects when we click the finish button
1
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...
3
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.