Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a couple problems with the history object

Status
Not open for further replies.

A1METALHEAD

Programmer
May 21, 2004
76
US
hello, i am working on a project that needs to display the last page viewed on the browser, and needs to have the capabliity to e-mail it along with other informaion. iv been looking over the internet for a wile, and finaly came here. i dont know how to get the last page viewd, and i do know how to e-mail it, but the domain that is going to use this page dosent use outlook at all.

thnaks for time,
~metalhead
 
You could use cookies in all your pages to store the URL. That will work for pages within your domain. Other than that, there's not much you can do. The browser security model won't let you interrogate the history object.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
thanks, but what im trying to do is write a page that will be displayed when a sites blocked, and you have the option to e-mail the site's url to the admin.
 
Aha... becomes clearer.

OK, on your proxy server there must be some code set up to display the "This site is norti" message. When a particular URL is requested... You'll need to set up some back end process to capture the requested URL there and display it in the page to be mailed off to the admin.

What code that is, will depend on what your servers are running. But it will have to be a back-end process, Javascript is of little use to you there I'm afraid.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
thanks! we are using isa, s ill look into the documentation and other sites. i wish it was as easy as using a javascript function tho...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top