MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
[solved]How do i confirm/cancel JavaScript pop-up/alert ?
Current time: 12-01-2020, 04:07 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved]How do i confirm/cancel JavaScript pop-up/alert ?
01-15-2016, 09:35 PM (This post was last modified: 01-20-2016 01:44 AM by bojankacarski.)
Post: #1
[solved]How do i confirm/cancel JavaScript pop-up/alert ?
Hello i tried to find this answer in the documentation but couldn't. I'm doing a script which navigates to a certain point and opens a JS pop-up/alert window which i want to confirm but couldn't find the command i must execute in order to do so. Any ideas ?

p.s. Hello guys i found a solution for my question so i will share it with you if anyone ends up having the same problem:
from the browser inspector i found that the script (which fires the alert) has a DOM property which has "_ConfirmOnFormSubmit" with value set to false just attached the following step to my script
"exec ctl00_cph_MainContent_DocumentView1_ib_Delete.ConfirmButtonBehavior._ConfirmOnFo​rmSubmit=true;" which makes this true and here you go there is no confirmation window (submits the form automatically)

Keep up the good work WPT is awesome !

Attached File(s) Image(s)
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
[solved]How do i confirm/cancel JavaScript pop-up/alert ? - bojankacarski - 01-15-2016 09:35 PM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)