Toon posts:

[JavaScript] Vanaf googlelink wil website niet meer terug

Pagina: 1
Acties:
  • 30 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?

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

Creepy

Tactical Espionage Splatterer

Ja ho ff, hier staat je topic :)

"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


Dit topic is gesloten.