File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: origin of the page
 
Similar Threads
Velocity
How to get the Previous visited url name using java script
REST, XML over HTTP, Web Services?
Closing parents parent html file
Table in Javascript & HTML