automatic opening windows

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

automatic opening windows

Post by Smackie »

Im not for sure what kind of scripting codes to use for a messenger :?: i am making a messenger and I want to make it where when a user sends a message to someone it will popup on the other users screen.. can someone tell me how i could go along and make something like that?


Thanx
Smackie
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

assuming you can get past pop-up blockers:

Code: Select all

<script>
function openWin(){
  var nw = window.open('nw.php','nwi','width=400,height=400');
  nw.focus();
}
</script>
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Post by Smackie »

Thank you
Post Reply