File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes origin of the page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "origin of the page" Watch "origin of the page" New topic

origin of the page

andy nan

Joined: Aug 28, 2003
Posts: 3
I have two HTML pages A.html with add Button and B.html with add button.
when the add button is clicked from A.html or B.html ,c.html is displayed.
I would like to know from Which html page c.html has been called.
I mean to say 'the origin of c.html"
please help
sunitha reghu
Ranch Hand

Joined: Dec 12, 2002
Posts: 937
You can have a hidden variable in each page .
Page a.html with value a and page b with value b.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
you can use document.referer
I agree. Here's the link:
subject: origin of the page
It's not a secret anymore!