1
gojoe_gojoe
Javascript problem...seems simple

I need to use a onclick to pop a window up on my registration page so I am in include/registerform.php and trying this code
echo" <a href='http://mysite.com/popup.php' onclick='toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=300,height=300,left=250,top=150'>PLEASE READ before you Register or your registration
will not be complete</a>"
;


What do I need to call to get javascript to function on this page? I tried
<{$xoops_js}>
but all to no avail. I just need some simple javascript on the page. I searched through Google and the forum but it seems there is not much on XOOPS and javascript....throw me a bone here.

2
Dave_L
Re: Javascript problem...seems simple
  • 2005/2/27 4:58

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Try this:

echo "<a href='javascript:void(0)' onclick="window.open('http://mysite.com/popup.php','window_name','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=300,height=300,left=250,top=150');">PLEASE READ</a> before you Register or your registration will not be complete.";


(Omit the space between "java" and "script". I don't know why that's displayed above.)

3
gojoe_gojoe
Re: Javascript problem...seems simple

Dave_L....YOU ARE THE MAN That worked perfectly

4
Dave_L
Re: Javascript problem...seems simple
  • 2005/2/27 6:44

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7



Login

Who's Online

224 user(s) are online (142 user(s) are browsing Support Forums)


Members: 0


Guests: 224


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits