Hello

Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: \'Back\' javascript  (Read 893 times)

Offline Seed_Of_Evil
  • White God
  • Legendary Member
  • ******
  • Posts: 6881
  • Karma: +10/-0
\'Back\' javascript
« 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!
Todas estas cosas se perderán en el tiempo como lágrimas en la lluvia.

Offline THX
  • nigstick
  • Legendary Member
  • ******
  • Posts: 8158
  • Karma: +10/-0
\'Back\' javascript
« Reply #1 on: November 27, 2005, 11:40:38 AM »
hmmm seems to work ok here, copy the code from page two:

JS Test

\"i thought america alreay had been in the usa??? i know it was in australia and stuff.\"
-koppy *MEMBER KOPKING FANCLUB*
\"I thought japaneses where less idiot than americans....\" -Adan
\"When we can press a button to transport our poops from our colon to the toilet, I\'ll be impressed.\" -Gman

Offline Seed_Of_Evil
  • White God
  • Legendary Member
  • ******
  • Posts: 6881
  • Karma: +10/-0
\'Back\' javascript
« Reply #2 on: November 28, 2005, 02:01:27 AM »
Thanx THX, though it doesnt work that well in firefox. It does in IE.
Todas estas cosas se perderán en el tiempo como lágrimas en la lluvia.

Offline Cerberus

  • I\'ve got 3 heads!
  • Legendary Member
  • ******
  • Posts: 4887
  • Karma: +10/-0
  • ffffffffff
    • Random Stuff.
  • PSN ID: Surebrec
\'Back\' javascript
« Reply #3 on: November 28, 2005, 02:49:27 AM »
Firefox 0 - IE 1

:)
Don't waste your words I don't need anything from you. I don't care where you've  been or what you plan to do. I am the resurrection and I am the light. I  couldn't ever bring myself to hate you as I'd like.

Offline THX
  • nigstick
  • Legendary Member
  • ******
  • Posts: 8158
  • Karma: +10/-0
\'Back\' javascript
« Reply #4 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.

\"i thought america alreay had been in the usa??? i know it was in australia and stuff.\"
-koppy *MEMBER KOPKING FANCLUB*
\"I thought japaneses where less idiot than americans....\" -Adan
\"When we can press a button to transport our poops from our colon to the toilet, I\'ll be impressed.\" -Gman

 

SMF spam blocked by CleanTalk