1

was wondering if anyone could help me figure this one out. This might sound like the easiest question ever. I'm just getting started with jQuery.

In the image below, is it possible to replace the "https:/ /jsfiddle.net/vh6ptcrd/" to a Custom Message?

enter image description here

<div class="tile">
 <div class="img-bg"onclick="alert('This Click will take me to...');window.close();">
        <p>Click!</p>
 </div>
</div><!--.tile end -->

Thanks in advance for your help.

user782245
  • 81
  • 1
  • 1
  • 7

2 Answers2

5

Unfortunately it is not possible. I would suggest using something like "Sweet Alert": http://tristanedwards.me/sweetalert

It's easy to implement and looks better than the vanilla alerts.

Charlie
  • 1,117
  • 9
  • 12
0

There isn't any way for customizing the browser's alert box. Instead you can use one of the jquery notification plugins:

hamed
  • 7,939
  • 15
  • 60
  • 114