Click to See Complete Forum and Search --> : Automatic link - help needed


me01273
02-25-2005, 06:24 AM
Hi, is there a function in php, that will allow me to call a link the be clicked automaticaly? For instance(im just writing generally not in actual php code)

if close = true
then:

(can the link below happen without the user clicking on it?)

call this link atomaticlly
<a href="#" title=" close this window " onclick="window.opener = top;window.close();">close</a>

else:
show page


Thanks
David

phpnovice
02-25-2005, 08:15 AM
No, being server-side-only, PHP cannot directly interact with the browser. This is what client-side script (e.g., JavaScript) is for.

me01273
02-25-2005, 08:18 AM
oh i see, thanks for the advice
David