inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Feb 7, 2017 20:05:27 GMT -8
Hey everyone! I'm working on a plugin over on my test forum, and I'm running into a coding wall with a PB Alert Box. 1. I'm not sure how to make a PB Alert Box popup when you click on a button. I have the basic button JS:
pb.window.alert("Credits", "Hi, I'm an alert"); but that brings up an alert when the page loads, not when you click on a button. I want to create an alert box that pops up when you click on a button. I'm guessing that there would be an on-click event, but I cannot seem to get it to function properly - the above is all I have so far. I have looked on W3Schools.com's JS section to no avail, which is why I've come here. Thank you for any help that you can give me!
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Feb 8, 2017 2:03:31 GMT -8
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Feb 12, 2017 12:13:43 GMT -8
Thanks, Peter. I will look into this!
|
|