onklick nicht auf _top sondern _blank

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • onklick nicht auf _top sondern _blank

    hey!

    Ich kenn mich hiermit überhaupt nicht aus, aber ich muss beim klick auf diesen Button ein neues Fenster aufhaben, in dem dann die entsprechende URL angezeigt wird...

    kann mir jemand sagen wie ich das abändern muss damit es klappt?

    <input onclick="parent.location='http://www.seite.de'" type="button" value="Seite">

  • #2
    window.open
    INFO: Erst suchen, dann posten![color=red] | [/color]MANUAL(s): PHP | MySQL | HTML/JS/CSS[color=red] | [/color]NICE: GNOME Do | TESTS: Gästebuch[color=red] | [/color]IM: Jabber.org |


    Kommentar


    • #3
      <input onclick="parent.location='http://www.seite.de'" type="button" value="Seite" [COLOR=crimson]target="_blank"[/COLOR]">
      Gruß Oli

      Webdesign, Programmierung u.v.m. Börner It
      Rss Katalog Verzeichnis. RssKat
      PHP - Scripte, News, Tutorials u.v.m PHP Community Neu
      Günstige PHP Projekte nichts von der Stange Börner IT Shop

      Kommentar


      • #4
        Original geschrieben von oli
        <input onclick="parent.location='http://www.seite.de'" type="button" value="Seite" [COLOR=crimson]target="_blank"[/COLOR]">
        Wenn dann parent.location[COLOR=red].href[/COLOR] & target="_blank" ist ebenso falsch.
        Aber der Richtigkeit halber müsste es self.location.href heissen.
        self zeigt auf das aktuelle Windowobjekt und parent auf das übergeordnete, sofern es eins gibt.
        Zuletzt geändert von reallife; 15.01.2006, 16:35.

        Kommentar

        Lädt...
        X