Toon posts:

[JavaScript] Vanuit google link met terug knop niet terug

Pagina: 1
Acties:
  • 46 views sinds 30-01-2008

Verwijderd

Topicstarter
In google staan subpagina's van een website met frames. Nu is het zo dat ik niet alleen de subpagina wil laten tonen. Maar de website incl. frames, omdat in andere frames de menubalk en topbalk staat.

Ik heb de volgende oplossing daarvoor al gevonden:

JavaScript:
1
2
3
4
5
6
7
8
<SCRIPT LANGUAGE="JavaScript">
<!--
var str = location.search;
var pos = str.indexOf("&print");

if ((top.location.href.indexOf("index.php") == -1)&& (pos == -1)) 
top.location.href = "/index.php?bestand=" + this.location.pathname + "&pagina=reisinfo"; 
// -->


Echter als ik nu op de google link klik komt de gehele pagina incl. menu en top tevoorschijn. Niets mis mee, maar als ik nu op de back-knop klik van de browser blijf ik in de framespagina (index.php) hangen en kan ik niet meer terug naar google. Hoe los ik dit op?

[ Voor 14% gewijzigd door Verwijderd op 23-11-2004 21:23 ]


  • NMe
  • Registratie: Februari 2004
  • Laatst online: 19-05 21:24

NMe

Quia Ego Sic Dico.

In je browser 2 pagina's terug gaan in plaats van eentje. Veel meer zit er niet op ben ik bang, het is kiezen of delen. :)

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


  • Creepy
  • Registratie: Juni 2001
  • Laatst online: 08:53

Creepy

Tactical Espionage Splatterer

Javascript hoort bij de buren, iets wat ook niet in de FAQ staat ofzo ;)
P&W -> W&G

"I had a problem, I solved it with regular expressions. Now I have two problems". That's shows a lack of appreciation for regular expressions: "I know have _star_ problems" --Kevlin Henney


  • McVirusS
  • Registratie: Januari 2000
  • Laatst online: 11-05 10:29
Hier is genoeg over te vinden met de search. Ben in goede bui dus de oplossing:
code:
1
2
3
4
5
var str = location.search;
var pos = str.indexOf("&print");

if ((top.location.href.indexOf("index.php") == -1)&& (pos == -1)) 
top.location.replace("/index.php?bestand=" + this.location.pathname + "&pagina=reisinfo" );

Dit topic is gesloten.