About://(null)? | SoloLearn: Learn to code for FREE!

+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?

4/4/2017 1:17:35 PM

iBrandon

2 Answers

New Answer

+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

+1

Ohh ok! So for this app I can't change the alert sign because it only shows the website ID in the alert?