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.

JavaScriptFrage: Browser Maximieren

Empfohlene Antworten

Veröffentlicht

Ich suche einen Befehl, dne ich in meine Page einbauen kann, der den Browser immer gleich maximiert öffnet. Symbolleisten sollen aber bleiben. Wäre nett, wenn mir jemand den kompletten Syntax aufschreiben könnte, da ich von JavaScript ungefähr null Plan habe.

THX

Tach auch...

zum maximieren fällt mir grad nur sowas ein..

  

<script language="javascript">

<!--

x=screen.availWidth

y=screen.availHeight

if (x<=0) x=0;

if (y<=0) y=0;

self.moveTo(0,0)

self.resizeTo(x,y)

-->

</script>

Ich hab das jetzt mal eingebaut, aber: Das tut nicht.

Falls es ausser mich sonst noch jemanden interessiert, ich hab jetzt die Lösung gefunden:


<script language="JavaScript">

<!--

/*** Browser und Versionsnummer bestimmen ***/

var BrowserName = navigator.appName;

var BrowserVersion = navigator.appVersion;

var VersionShort = BrowserVersion.substr(0, 1);

/*** Seite in obersten Frame laden ***/

if(frames)

{

if(top.frames.length > 0)

top.location.href=self.location;

}

/*** oder Noframe-Browser automatisch weiterleiten ***/

/*** (falls eine Noframe-Alternative existiert) ***/

else

{

open("noframe/index.htm", "NoframeWindow");

close();

}

/*** Vollbild erzwingen ***/

window.moveTo(0, 0);

var high = screen.height;

var wide = screen.width;

if(VersionShort > 3)

{

window.moveTo(0, 0);

if(BrowserName == "Netscape")

{

window.outerHeight = high;

window.outerWidth = wide;

}

else if(BrowserName == "Microsoft Internet Explorer")

{

window.resizeTo(wide, high);

}

}

//-->

</script>

tach nochmal...

also mit absoluten zahlen funzt es...

 

<!--

x=screen.availWidth/2-515

y=screen.availHeight/2-370

if (x<=0) x=0;

if (y<=0) y=0;

self.moveTo(x,y)

self.resizeTo(1024,790)

-->

</script>

musste mal rumexperimentieren...

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.