Πρόσφατες απαντήσεις προς window.alert window sizehttps://support.mozilla.org/el/questions/13253852021-02-10T23:17:51-08:00What works best for me in case of issues it to make the first line very long.
alert("---------------2021-02-10T23:17:51-08:00cor-elhttps://support.mozilla.org/el/questions/1325385#answer-1391261<p>What works best for me in case of issues it to make the first line very long.
alert("--------------------------------------------------------\n"+document.getElementsByTagName("body")[0].innerHTML);
</p><p>You want to show html content in an alert and that may not always work out well as in a lot of cases this can be one long line that isn't really suited for displaying in an alert.
An Alert prompt also has a maximum for what is displayed and is cut off beyond that.
I usually use a prompt where both arguments have this content as there is no limit for the content in the prompt part.
</p><p>In the current release it works fine with the HTML code of this page.
</p>
<ul><li>alert("HTML code:\n"+document.getElementsByTagName("html")[0].outerHTML);
</li><li>prompt("HTML code:\n"+document.getElementsByTagName("html")[0].outerHTML,document.getElementsByTagName("html")[0].outerHTML);
</li></ul>
<p>You can possibly parse the content and break long lines.
</p>Thanks for your tips.
I have put extra line breaks and line count in the alert stmt. Nothing helps s2021-02-10T18:42:12-08:00stroebiehttps://support.mozilla.org/el/questions/1325385#answer-1391237<p>Thanks for your tips.
</p><p>I have put extra line breaks and line count in the alert stmt. Nothing helps so far.
see attached alert statement and result on a maximized the window.
</p><p>Thanks a lot in advance for your help, Jan
</p>Also make sure that the Firefox window is large enough (try full screen) as this is tab modal.
2021-02-10T08:44:16-08:00cor-elhttps://support.mozilla.org/el/questions/1325385#answer-1391169<p>Also make sure that the Firefox window is large enough (try full screen) as this is tab modal.
</p>I've experienced issues like that as well at various occasions.
Best it put a long line at the top o2021-02-10T08:42:42-08:00cor-elhttps://support.mozilla.org/el/questions/1325385#answer-1391168<p>I've experienced issues like that as well at various occasions.
Best it put a long line at the top of the message and make sure that you have line breaks (\n) in the message or at least spaces, so Firefox can wrap text.
</p>Hi Jan, I do not know what is causing that. I can't think of any way to restrict the height through 2021-02-10T08:26:47-08:00jscher2000https://support.mozilla.org/el/questions/1325385#answer-1391163<p>Hi Jan, I do not know what is causing that. I can't think of any way to restrict the height through a setting.&nbsp;??
</p>Hello,
Thanks for the help so far.
However, it did not solve my problem. After renaming xulstore.js2021-02-10T07:51:09-08:00stroebiehttps://support.mozilla.org/el/questions/1325385#answer-1391157<p>Hello,
Thanks for the help so far.
However, it did not solve my problem. After renaming xulstore.json to xulstoreOLD.json, I have started up Firefox again and did my test but the result is the same. See attached picture to see the result of innereHTML in the alert box.
Only 1 line of data is displayed along with the horizontal scroll bar, I assume that the nr of displayed lines is not enough to show the vertical scroll bar.
</p><p>Thanks a lot in advance for your suggestions, Jan
</p>Hi Jan, dialog sizes might be stored along with window dimensions in the same settings file. It's JS2021-02-10T00:52:54-08:00jscher2000https://support.mozilla.org/el/questions/1325385#answer-1391067<p>Hi Jan, dialog sizes might be stored along with window dimensions in the same settings file. It's JSON, so in theory it's editable, but we usually suggest renaming it and having Firefox build a new one. Here's how:
</p><p>Open your current Firefox settings (AKA Firefox profile) folder using either
</p>
<ul><li> "3-bar" menu button &gt; "?" Help &gt; Troubleshooting Information
</li><li> (menu bar) Help &gt; Troubleshooting Information
</li><li> type or paste <strong>about:support</strong> in the address bar and press Enter/Return
</li></ul>
<p>In the first table on the page, on the Profile Folder row, click the "Open Directory" button. This should launch a new window listing various files and folders in your systems file browser.
</p><p>Leaving that window open, switch back to Firefox and Quit.
</p><p>Pause while Firefox finishes its cleanup, then rename <strong>xulstore.json</strong> to something like <strong>xulstoreOLD.json</strong>.
</p><p>Start Firefox back up again. Do windows and dialogs display normally again?
</p><p><em>That mini-reset may hide the bookmarks toolbar.</em> You can use one of these methods to show the toolbar list and select the desired bars there:
</p>
<ul><li> right-click (on Mac Ctrl+click) a blank spot on the tab bar (or the "+" button)
</li><li> (menu bar) View &gt; Toolbars<br><em>On Windows, tap the Alt key to activate the menu bar temporarily.</em>
</li><li> in Customize mode &gt; Toolbars button (see: <a href="/en-US/kb/customize-firefox-controls-buttons-and-toolbars" rel="nofollow">Customize Firefox controls, buttons and toolbars</a>)
</li></ul>
<p>To turn on the Bookmarks Toolbar click it on the list.
</p>