Audiominds
asked on
how can i add to this code a previous page link using javascipt.
Hello i need to add to this javascipt condition back to previous page or history -1 and i need to check if the previous page was not in the domain http://www.audiomind.net get back to index page http://www.audiominds.net please give mthe full code based on this query below
if ( notification == "b")
//add here the navigation details
}
else
{
document.getElementById("notification").innerHTML=notification;
document.getElementById("txtstate").innerHTML=content;
}
ASKER
thanks ASPSQLServerCOM can anyone help add the code to my scipt showed above as i am a newbie with these stuff .
thanks.
thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hisotry object - history.previous method
previous Property
The previous property contains the complete URL of the previous element in the History list, and is the equivalent of the URL the user would go to if they selected Back in the Go menu.
Syntax: history.previous
http://www.exforsys.com/tutorials/javascript/javascript-history-object-properties-and-methods.html