Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
seite2.document.write(seite1.document.variablenname.value);
seite1 = this.document
// im zweiten Fenster
seite2 = this.document
<form action="seite2.php" method="GET">
<input type="text" value="" name="xyz" /><br />
<input type="submit" value="auswerten" />
</form>
<script type="text/JavaScript">
<!--
function myprompt(self) {
eingabe = prompt('Etwas eingeben','')
if (eingabe == null || eingabe == false)
return false
href = self.getAttribute('href')
document.location.href = href+'?xyz='+eingabe
//eventuell das ? mit & ersetzen
}
-->
</script>
<a href="seite2.php" onclick="return myprompt(this)">Prompt + Link</a>
<script type="text/JavaScript">
<!--
function myprompt(id) {
eingabe = prompt('Etwas eingeben','')
if (eingabe == null || eingabe == false)
return false
self = document.getElementById(id)
href = self.getAttribute('href')
self.setAttribute('href',href+'?xyz='+eingabe)
//eventuell das ? mit & ersetzen
return true
}
-->
</script>
<span onclick="myprompt('mylink')">hier klicken für prompt</a><br />
<a href="seite2.php" id="mylink">hier klicken für seite2.php</a>
<?php
$wert = isset($_GET["xyz"]) ? $_GET["xyz"] : "nicht gesetzt";
print $wert;
?>
$inhalt .= "<script type='text/JavaScript'>
<!--
function myprompt(self) {
eingabe = prompt('Etwas eingeben','')
if (eingabe == null || eingabe == false)
return false
href = self.getAttribute('href')
document.location.href = href+'&xyz='+eingabe
}
-->
</script>
<a href='cheats.php' onclick='return myprompt(this)'>Öffnen</a>";