I have a simple calculator written using javascript and html.

I would like to make it such that when a link to the calculator is clicked, a pop up window with this calculator appears rather than referring a user to anew page.


Recommended Answers

All 2 Replies

You can achieve that easily using window.open() javascript function.

If you want to use a modal dialog you can use window.showModalDialog("calc.php");

but I think it only works in IE. You can use lightbox scripts as well

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.