javascript popup feedback

houssam_ballout

New Member
Hello all,
I am creating a php page, and when I press on the delete button, I want to give the user the choice to make sure that he/she wants to delete that item from the page, I want to make a popup javascript box and depending on his choice I can redirect the page to delete it or stay on the same one?
Thanks in advance
 
With Javascript:

Create a function to pop-up:

Function popup()
{
window.open("url-of-popup.html", "name of the popupwindow or leave blank")
You can add different features such as width height status etc. Tell which one you want.

On your button add the function by adding this to you button script:
onclick="popup()"

That will make a window pop-up when the user clicks on the button.
Now edit your HTML page of the pop-up window to direct the user wherever you want him to go if he clicks on whatever buttons you'll have.

Hope this helps :D
 
Back
Top