Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Abfrage im neuen Fenster aufmachen

Empfohlene Antworten

Veröffentlicht

Hallo,

ich möchte die folgende Abfrage in einem neuen Fenster öffnen (So ähnich wie ein pop-up-fenster). Kann hier jemand weiterhelfen?

<?

error_reporting (0);

?>

<html>

<body>

<form>

Search <input type=text value="<?=$_GET['q']?>" name=q>

<input type=submit>

</form>

<hr>

<?

if (strlen ($_GET['q']) > 0)

{

$url = "http://google.com/complete/search?output=toolbar&q=" . urlencode($_GET['q']);

$handle = fopen($url, "rb");

$contents = stream_get_contents($handle);

fclose($handle);

$xml = new SimpleXMLElement($contents);

foreach ($xml->CompleteSuggestion as $entry)

{

echo "<a href='?q=" . urlencode($entry->suggestion['data']) . "'>" . $entry->suggestion['data'] . "</a><br>";

}

}

?>

<a href="javascript:history.back()">Zurück</a>

</body>

</html>

Du kannst deine Seite über window.open() oder über das target-Attribute bei Links und Formularen in einem neuen Fenster öffnen.

Weniger sichtbare Alternativen nutzen für sowas greybox oder andere Spielereien.

Ich habe vorhin die window.open() -Lösung ausprobiert. Funktioniert nicht bei mir. Könntest du mir Anhand des unten abgebildeten Scripts zeigen, wo du den Zusatz einbauen würdest?

Ich habe vorhin die window.open() -Lösung ausprobiert. Funktioniert nicht bei mir.

Mehr Informationen, bitte.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.