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?