I have two snippets of code for a 'Back Button' function, could you explain whether one is
better than the other, or are they both equal.
Code:
1. href="nojavascript...history.back()"
2. href="nojavascript...history.go(-1)"onMouseOver="self.status=document.referrer;return true"
Is one more efficient/faster/slower than the other...Or will either one do?
Thankyou
Peter
'Back Button' code explanation/help...
The first one to go back to previous page in history. The second example to navigate back X number of pages in history. I don't think you'll ever notice the difference in speed between the two.
CoffeeCup... Yeah, they are the best!
Thanks Tom,
I just wanted to know, am learning all the time that's all, its amazing
how you can do the same thing with different calls.........
Peter
I just wanted to know, am learning all the time that's all, its amazing
how you can do the same thing with different calls.........
Peter
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.