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.

Titel eines XUL-Fensters per JS ändern

Empfohlene Antworten

Veröffentlicht

Huhu allerseits,

ich schreib das mal hier rein, sonst passt das iwie nirgends ;)

Ich schreibe momentan eine Firefox extension. Was für eine möchte ich hier nicht näher erläutern :P

Auf jeden Fall habe ich dein XUL-Fenster


<?xml version="1.0"?>

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>


<window id="_NotifyPopup" title="Hinweis von ..." orient="horizontal" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" flex="0">

	<script type="application/x-javascript" src="chrome://meinprojekt/content/notifypopup.js" />


	<iframe src="about:blank" id="_NotifyPopup_iframe" flex="1"/>

	<script>

		_NotifyPopupInit();

	</script>

</window>

Ich möchte jetzt in der Funktion _NotifyPopupInit(); gerne den Titel meines XUL-Fensters ändern.

Durch setzen von document.getElementById(''_NotifyPopup").title='' ändert sich nichts, ebenfalls nicht wenn ich stattdessen setAttribute() aufrufe.

Bin für jede Hilfe dankbar :)

gruß

Jan

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.