Jump to content

Archived

This topic is now archived and is closed to further replies.

takeiteasy

Create Popup Window

Recommended Posts

Hi all,

Just want to ask if there's any codes that when clicked on a link, a small popup window will appear? Thanks alot!

Share this post


Link to post
Share on other sites
This is a question for Javascript, not PHP. I'm moving this to the Javascript section

Share this post


Link to post
Share on other sites
<script language='javascript'>
var pop = window.createPopup();

function show(){
pop.document.open();
pop.document.write('<body bgColor="green">ha , look here !</body>');
pop.document.close();
pop.show(300,300,100,100);
}
</script>
<a href='javascript:show();'>Popup</a>


Try that!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.