wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 15376
you can use document.referer
It is sorta covered in the JavaRanch Style Guide.
subject: origin of the page
Similar Threads
REST, XML over HTTP, Web Services?
Table in Javascript & HTML
Closing parents parent html file
How to get the Previous visited url name using java script