Link to home
Start Free TrialLog in
Avatar of Audiominds
AudiomindsFlag for United Kingdom of Great Britain and Northern Ireland

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;
				}

Open in new window

Avatar of ASPSQLServerCOM
ASPSQLServerCOM
Flag of United States of America image

use

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


Avatar of Audiominds

ASKER

thanks ASPSQLServerCOM can anyone help add the code to my scipt showed above as i am a newbie with these stuff .
thanks.
ASKER CERTIFIED SOLUTION
Avatar of ASPSQLServerCOM
ASPSQLServerCOM
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial