Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Anchor around applet. How to jump to HREF when someone clicks on the applet?

Posted on 1997-03-13
1
Medium Priority
?
214 Views
Last Modified: 2008-03-06
If the code on my HTML page looks something like

<A HREF="xpto.html">
<APPLET
   ...
</APPLET>
</A>

then how can I code my applet so that when someone clicks on it, they go to the xpto.html page? I don't want to code the jump-to-URL in the applet, I want the browser to do it. How can this be done? I'm using MSVisual J++.
0
Comment
Question by:midas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
majkl earned 100 total points
ID: 1219163
Try this :
 URL add
 try
             {
                add = new URL("http://my.machine/File_with_applet.html#xpto.html");
             }
           catch (MalformedURLException e) {}

           getAppletContext().showDocument( add);

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question