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

  • Home
  • SEARCH
  • 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 525891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:43:10+00:00 2026-05-13T08:43:10+00:00

the two ways that I know to get the page url are: 1.through the

  • 0

the two ways that I know to get the page url are:
1.through the applet class:
Applet.getDocumentBase()

2.through the netscape javascript library:
JSObject.getWindow(this).eval(“location.href”)

First, what are the differences between those two methods and advantages of each,

Secondly, can users trick the url of those methods in someway? to make the applet think it’s embeded in http://www.stackoverflow.com/index.html for example?

  • 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-05-13T08:43:10+00:00Added an answer on May 13, 2026 at 8:43 am

    If you look at the code for Applet.getDocumentBase() (sun’s implementation of AppletStub), you’ll see that it is also getting the location using JSObject. But it has a lot of additional code around it, and is guaranteed to work across all browsers and setups. So better use Applet.getDocumentBase()

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

Sidebar

Related Questions

There are two ways to get a NSManagedObjectContext that I know of: create a
I know that we can initialise an array in one of two ways: Loop
So I've noticed that there seem to be two ways to get the same
There are two ways (that I know of) to cause an unintentional memory leak
I am reading a book that compares two ways of implementing threads, Middleware Threads
From previous post, I learnt that for there are two ways, at least, to
I recently find out that wpf handles INotifyPropertyChanged in two different ways. I just
I know there are two ways, [self.navigationController pushViewController:siteViewController animated:YES]; [self presentModalViewController:anotherViewController animated:YES]; However, those
Given the following two ways of defining a class method in Ruby: class Foo
Below is the two ways I know how tomcat keep session as so far.

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.