-1

I need a modal popup (so i shouldn't have additional tab in browser and parent page should be blocked (and darkened) till popup is open) in javascript. Can it be done without css overlay (as i have some dynamic data - so it should be javascript) and without using additional libraries like jQuery (as i don't want to use it for the sake of only one task)?

Also pop up should contain php script output

HTML:

<div onclick="show(789);">Edit task #789</div>

Javascript:

function show(id) {
    //need open link like "/edit_single_task.php?id=789" in modal popup
    }

EDIT

Thanks, How to code a JavaScript modal popup (to replace Ajax)? works fine for me. But how can i combine it with php script output?

Community
  • 1
  • 1
Arrovil
  • 865
  • 1
  • 8
  • 20

1 Answers1

0

Would this work? Its pure javascript like you requested.

http://jsmodal.com/index.php

damienoneill2001
  • 498
  • 7
  • 17