PSX5Central

Non Gaming Discussions => Off-Topic => Topic started by: Seed_Of_Evil on November 27, 2005, 04:49:13 AM

Title: \'Back\' javascript
Post by: Seed_Of_Evil on November 27, 2005, 04:49:13 AM
Hi guys. I need your help because I cant find out the solution to a problem I have with a webpage.

I need to insert a \'back\' button in a page that bring you back just 1 in page history, though the javascript command (-1) doesnt work for me.

I\'ll let you show what I mean. Here you have the webpage I\'m making for a presentation in university, consisting in a trivia game to make use of net searchers.

http://www.telefonica.net/web/madan/trivia/trivia.html

(the enter password is \'oxford\'). Just beging playing, the first two questions for example, and answer wrong to the third one, it will lead you to a webpage where a sorry disclaim is shown... just press back there and check how the javascript code brings you back to the start webpage. I want that it brings you back to the question you were to try again-.

Can you help me?

Thx!
Title: \'Back\' javascript
Post by: THX on November 27, 2005, 11:40:38 AM
hmmm seems to work ok here, copy the code from page two:

JS Test (http://www.bluesurfdesigns.com/jstest/page1.htm)
Title: \'Back\' javascript
Post by: Seed_Of_Evil on November 28, 2005, 02:01:27 AM
Thanx THX, though it doesnt work that well in firefox. It does in IE.
Title: \'Back\' javascript
Post by: Cerberus on November 28, 2005, 02:49:27 AM
Firefox 0 - IE 1

:)
Title: \'Back\' javascript
Post by: THX on November 28, 2005, 04:30:46 PM
heh i didn\'t even test it in IE, if it doesn\'t work in your firefox something\'s wrong with your puter.

That\'s basic single-line javascript for cryin out loud.