Jump to content


I need help Im a retard

  • Please log in to reply
2 replies to this topic

#1 ozm8

  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 28 November 2013 - 09:24 AM

Hello guys i need help I got a php script its an im messanger I have half set it up properly I think but im stuck on this step can someone please dumb it down for me

6) Set up linking page:
On the page you want to link to PHP121 (e.g.
your index.html page which will hav
e a hyperlink to the PHP121 script,
put this in the <HEAD> section:
<script type="text/javascript">
var newwindow;
function poptastic(url){
if (window.focus) {newwindow.focus()}
7) Create link:
Create the link to PHP
121 on your site. View
php121index.php in a text editor to s
ee an example of how to link to
Use code similar to the following to
create a nice contact-list sized
You need to edit the path to php121im.php if
php121im.php is not in the same di
rectory as your webpage that
is linking to PHP121.
<a href="javascript:poptastic('php
121im.php');">Instant Messenger</a>


#2 WebStyles

  • Members
  • PipPipPip
  • Advanced Member
  • 1,215 posts
  • LocationEurope

Posted 20 February 2014 - 02:51 PM

There's nothing wrong with that. It should open a new window (unless you have javascript disabled or a popup blocker or something). What error are you getting? does it not open the window, or does it not display your file in the window?

Need a Web Developer? Check out ClickWorks.org | I work on a PAY-WHAT-YOU-WANT basis (because the world needs a change)


"If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family anatidae on our hands!"

-- Douglas Adams

#3 Check202

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 12 May 2014 - 02:48 AM

So it is like this:

<title>Title of your webpage</title>
<script type="text/javascript">
var newwindow;
function poptastic(url){
if (window.focus) {newwindow.focus()}
<h1>Click on funky link below and it will pop up in new window</h1>
#Note below you have reference to php121 please ensure it is in the same folder as this script.
<a href="javascript:poptastic('php121im.php');">Instant Messenger</a>

That should work;
However I think you are just copy and pasting some code from elsewhere. I suggest some more study.

Edited by Check202, 12 May 2014 - 02:49 AM.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users