Thank you, James and Brian for your help. I have been struggling with it and it works now .. actually you are roght, James, the script's name must be there but in addition one has to pass the id value to the function as well. So it would look something like this: function check(ID) { window.open('popuppage.php?id=' + ID, 'name', 'toolbar=0, titlebar = 0, status=0, scrollbars=0, menubar=0, resizable=0, width =360, height=250,left=220,top=175'); } <a href='#' onClick='check(1234567); return false;'>click here</a> Brian, I see your point. Thank you for the suggestion. Best regards, David --- David Halliday <[EMAIL PROTECTED]> wrote:
> I have this link that, when clicked, oppens a popup window. I need to pass > an "id" to the new window so that the php script could process the page. I > dont really want a form and a hidden field. > > The popup window .. which is a php page .. opens alright, but the id value > is not passed. What is wrong? > > The link is like : > > <A HREF='#' onClick='check(); return false;'>click here</A> > > function check() { > window.open('?id=123456789', 'name', 'toolbar=0, titlebar = 0, status=0, > scrollbars=0, menubar=0, resizable=0, width =360, > height=250,left=220,top=175'); > } > It is the id value in the URL that I want to pass on to the popup window. > > The point is that if I use a normal link like so: > <a target="_blank" href="?id=123456789">click here</a> > > The script works fine. > > Any idea? __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html [Non-text portions of this message have been removed]