Javascript Alert showing URL

zachbarr
Mega Contributor

Is there any easy way to script Alerts to remove the customer's URL from Alert Messages?

find_real_file.png

4 REPLIES 4

Nate23
Mega Guru

That is a default javascript alert. I do not believe you can change the attributes of it... however you have other options.



such as:


client side:


g_form.addInfoMessage();


g_form.addErrorMessage();



server side:


gs.addInfoMessage();


gs.addErrorMessage();



or you can do something custom like sweetalerts:


SweetAlert


zachbarr
Mega Contributor

Thanks Nathan. I was not able to get the "sweetalert" to work.


Hi



Please check the thread below. hope it will help you



Re: Sweet ALert is not working


SanjivMeher
Kilo Patron
Kilo Patron

If you are on Jakarta, your alert come as shown below, where you dont see the URL.



find_real_file.png



Please mark this response as correct or helpful if it assisted you with your question.