This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "origin of the page" Watch "origin of the page" New topic
Author

origin of the page

andy nan
Greenhorn

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
Anand
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
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
you can use document.referer
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: origin of the page