[KLUG Members] Opening a popup with Java Script

bill bill at billtron.com
Mon Jun 20 23:05:20 EDT 2005


On Mon, 2005-06-20 at 22:41, Adam Tauno Williams wrote:
> I have the following line in a PHP script that contains this line -
> echo "<A HREF=\"javascript:void(0)\" onClick=\"ref =
> window.open(\'http://throw/hedera/popup.php\'); ref.focus();\">Edit
> Response</A>";

try 

onClick=return(window.open('yoururl.html'))

> - which from everything I've read should open a popup at the given url.
> The link appears but when clicked on nothing happens,  the current
> window does not move and a popup does not appear.
> 
> The output of this PHP script is embedded inside another application, 

Is the browser running the application?  Javascript is client-side
scripting so a browser has to run it.

Have you tried typing 

:javascript

into the URL of the browser to get an error report?

And that popups are not disabled.

> so
> to run a form I need to popup a browser window external to the current
> page.

Try getting a normal html page with javascript to popup a new window,
then work backwards.  If you can't do that it's just a javascript
problem.  I can send you javascript that I use for popups if you want.

kind regards,

bill




More information about the Members mailing list