PDA

View Full Version : How would I make a "back" button?


likegluelikecrew
01-09-2006, 07:48 PM
I am currently installing an iFrame on our company's website, and it's not so intuitive that the user has to click the browser's back button to get the previous screen within the frame. Can I make my own button? I've already designed the button in Photoshop, but how would I add the functionality in Dreamweaver that would make it act like the back button in a browser when the person clicked on it? Any help would rock...

Ghoul's Night Out

davidj
01-10-2006, 10:33 AM
function tmt_winHistory(id,s){
var d=eval(id)==null||eval(id+".closed");
if(!d){eval(id+".history.go("+s+")");}
}





<a href="#" onclick="tmt_winHistory('self','-1')">go back</a>