+ 2

About://(null)?

I noticed that whenever I create a prompt / alert, the label of that prompt / alert is always About://(null). Is there any way to change this label, and does this happen to others?

4th Apr 2017, 1:17 PM
iBrandon
iBrandon - avatar
2 Réponses
+ 1
Where are you creating the alert from? The alert label gets assigned the top level domain of the url the script is called from. For example, if you create the alert from the Sololearn code editor - https://code.sololearn.com/Wem2rznKXFx8/#js - the alert label will be code.sololearn.com If you open google.com and go to the dev tools (F12 on Chrome), move to Console and run alert("wow!"); for instance you'll see the alert label is www.google.com
4th Apr 2017, 1:51 PM
quackkkk
quackkkk - avatar
+ 1
Ohh ok! So for this app I can't change the alert sign because it only shows the website ID in the alert?
4th Apr 2017, 5:02 PM
iBrandon
iBrandon - avatar