Jump to content


Photo

Create Popup Window


  • Please log in to reply
2 replies to this topic

#1 takeiteasy

takeiteasy
  • Members
  • PipPipPip
  • Advanced Member
  • 32 posts

Posted 12 July 2006 - 04:15 AM

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!

#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 12 July 2006 - 04:25 AM

This is a question for Javascript, not PHP. I'm moving this to the Javascript section

#3 wakmp

wakmp
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 12 July 2006 - 05:54 AM

<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!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users