Getting The Last Url Visited

Mar 18, 2007

i do have a page saying :

index.html

where the user could setup a color afterwards the urls becomes :

index.html?color=maroon

for example.

obviously, in this page i have a menu linked to :

another_page.html

and i'de like, after the user entered in "another_page.html" to retrieve
:

?color=maroon

i have tested history however Firefox 2 says :

uncaught exception: Permission denied calling the method History.item

the same for history.previous

does a workaround exists ?

View 1 Replies


ADVERTISEMENT

Firefox Visited Link Issue

Jul 29, 2004

I don't know if this is the right place for this, but it didn't seem to fit anywhere else!

I have the folowing test page: [index.html]

<html>
<body>
<form id="go" method="post" action="page2.html">
<a href="java script:;"* here 1</a>
<a href="java script:;"* here 2</a>
</form>
</body>
</html>

*"java script:;" should not have the space, but for some reason if you don't use the space it comes out "javascript:;"

In IE if you click the link "Click here 1", and then return to this page it will mark the link that you clicked as visited (and leave the other unvisited even tho it goes to the same place, which is nice) but if you do the same in Firefox it will not mark the link as visited, which is rather frustrating. Does any one know if it is possible to get the clicked link marked as visited in firefox?

View 2 Replies View Related

Conflict Between Query-part Of Url And Visited-state Of Url

Jul 23, 2005

I have links on an index page like this:

<a href="link" onclick="DoOnClick('link')"> page title </a>

-where the DoOnClick("link")
just adds a query part to the url before executing:

location.href = "link?query";

( this is done in order to maintain certain state information
--(instead of using cookies.))

I also use something like this:

a.link { ...different... }
a.visited { ...colors... }
a.hover { ...for each of these... }

in a css file for the index pages,
in order to distinguish the already-visited page-links.


The problem is that it's not working right.

It works with JavaScript disabled,

But with JavaScript enabled, it's only the
first-clicked page link that gets marked as having
been visited. Subsequent pages don't get marked.

Apparently the full "link?query" is being put
in the browser history, - not "link".

And since "link?query" doesn't match exactly any "link"
on the page, --none of them get marked as having been visited.

( However, - the really odd thing, - is that it does work
-right -- in my local mirror of the site!
(--I'm using the latest IE browser.)

Anyway, my question is,
can anyone think of a way around this?

Perhaps by somehow using the JavaScript's "history" object to force recording of "link" instead of, or in addition to, "link?query", in the user's visited-link history, --so that they'll all get marked as such on the index pages?

View 5 Replies View Related

Creating A Visited Link In The Nav Section Of A One Page Website?

Oct 5, 2010

Anyone know how I can change the color of a text link on a page that doesn't load a new page, but rather stays on the same page?The nav links already use an onClick to present content below it that changes depending on what link in the nav I select. In other words, there's already two things going on -- links take you to content on the same page using a JS onClick.What I want to add to that is when you click on the link, it changes style, like turns bold or changes color. So then the user knows that not only have they selected new content, but the link they selected stands out as well.

View 1 Replies View Related

JQuery :: Get Back The Last Visited Tabs After Page Refresh Using Cookies?

Sep 13, 2009

I have used this code for UI tabs.

[URL]

I tried to get back the last visited tabs after page refresh using cookies. But I failed to set cookies here.

View 1 Replies View Related

Embedd An Address Navigation Bar On Top Of Pages Visited From Root Site?

Sep 2, 2010

I have what some would identify as a Kiosk machine running a browser in full screen(true full screen, no address bar visible). It serves as an internet cafe machine, with unique users and a login system.

What I'm looking to do is when the user leaves the root site (via clicking a button), to embed a frame at the top of the page with an address navigation bar, so I can track the time the user spent browsing. I'm exclusively using firefox, and I'm not concerned with support for such functionality in other browsers.

I assume I can achieve this with javascript, jquery, or ajax, I'm just not sure which to start with and how to begin planning the execution.

View 2 Replies View Related

Multible Windows - Java Pop Up Appears When My Page Is Visited Another One Appears Over The Top Of It

May 28, 2010

how do i get it/what is the source code so when one java pop up appears when my page is visited another one appears over the top of it like in windows when they is 2 boxes but one overlaps the other one

View 1 Replies View Related

How To Set Link's "visited" Property/pseudo-class Without Clicking On The Link

Apr 27, 2007

I would like to set the link's "visited" pseudo-class with javascript
without clicking on the link. My goal is to update the link's color
(previously set in the CSS file) to be "visited" without actually
clicking on the link and then clicking "back" in the browser.

Does anyone know how? Here are the following things I've already
tried to no avail:

var obj = document.getElementById("idOfMyLink");

//obj.visited=true; // NO
//obj.style.visited=true; // NO
//obj.click(); // NO, performs a click and takes me away from
current page

/*
// Setting the src of an iframe on the same page, trying to
"stuff" this URL into browser's "History"

var theFrame = document.getElementById("myiframe");
theFrame.src = obj.href;

// NO. The iframe does go to correct URL, but the link's color
doesn't update.*/Any ideas?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved