Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8165449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:32:18+00:00 2026-06-06T19:32:18+00:00

An example: getAppletContext().showDocument( new URL(javascript:alert(document.getElementById(‘textbox’).value); )); Instead of alerting this textbox value, I want

  • 0

An example:

getAppletContext().showDocument(
  new URL("javascript:alert(document.getElementById('textbox').value);"
));

Instead of alerting this textbox value, I want to use this value further as string variable in my applet program. How can i achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T19:32:21+00:00Added an answer on June 6, 2026 at 7:32 pm

    Multiple ideas for different approaches. Here are some:


    Put the input-field in the Applet. Instead of adding an <input>-tag to the HTML-page, you can get input in the Applet by adding AWT components (or, when using a JApplet you can use the newer Swing toolkit) to it. Although Swing should be preferred.

    Of course, if you can’t change the applet-code, this is not an option.


    Use the <param>-tag. You can give your applet some initial values (e.g. parameters), by using the <param>-tag in the <applet>-tag as shown by this example from the tag-doc:

    <applet code="A21" width="256" height="256" archive="toir.jar">
      <param name="img" value="test.gif">
    </applet>
    

    However, as I said, these are initial values. If you change them while the applet is already running, they won’t change in the Applet itself.

    So, if the values in your <input>-tag are for initial values, you can use this (and manipulate the value-attribute with JS). If you want to change the values while the applet is running, this only works if you restart the applet (which might not be the best idea).


    Use “Java-to-Javascript Communication”. There is a certain document introducing the JSObject-class. It can be found here. There is also the “Common DOM API” which can be used to access the DOM-structure of the HTML-page. It sounds like what you’re searching for, but it seems a little outdated.

    Als, this seems to be no standard (just like the <applet>-tag) and therefor, some browsers might not or not completely implement support for that. You’ll have to try it out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Example: error_reporting(E_ALL | E_STRICT); class Test {} $obj = new Test(); $obj->undeclared = oops;
Example output from PHP: { RootName_0:{Id:1,ValId:1,Value:Colour,Text:Blue}, RootName_1:{Id:1,ValId:2,Value:Colour,Text:Red} } How can I use Backbone.js or
Example: Table: Unit ID NAME VALUE 1 Kilo 1000 2 Mega 1000000 3 Giga
Example: SELECT s.title, t.description, u1.value * s.cache_value as Cache, u2.value * s.drive_value as Drive,
Example code: List<Student> Students = new List<Student>() { new Student(101, Hugo, Garcia, new List<int>()
Example: <select id=myselect> <option value=A>First</option> <option value=B>Second</option> <option value=C selected=selected>Third</option> <option value=D>Fourth</option> </select> Using
example: I want to see if array[5] holds a value or is empty.
Example Code: EmigProb<-c(rep(seq(0.1,0.8,length=5),4),rep(seq(0.1,0.8,length=5),4)) RemainEmigProb<-c(rep(0.2,5),rep(0.4,5),rep(0.6,5),rep(0.8,5),rep(0.2,5),rep(0.4,5),rep(0.6,5),rep(0.8,5)) Value<-rnorm(40,5,3) Parameter<-c(rep(Survival,20),rep(Resight,20)) fakedata<-data.frame(EmigProb=EmigProb,RemainEmigProb=RemainEmigProb,Value=Value,Parameter=Parameter) q <-ggplot(fakedata,aes(EmigProb,Value,shape=factor(RemainEmigProb),colour=factor(Parameter),linetype=factor(RemainEmigProb)))+scale_colour_discrete(Parameter)+scale_linetype_discrete(Remain Emigrant Probability)+scale_shape_manual(Remain Emigrant Probability,values=c(0,5,6,15)) q
Example: public class JFrameTest { public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() {
Example 1: http://www.example.com/image/logo.png http://www.example.com/images/logo.png Example 2: http://www.example.com/user/johndoe http://www.example.com/users/johndoe Especially if you use the Url

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.