Thread: AutoOpen Document in new Window.
Results 1 to 3 of 3
Related
-
Passing value from parent window to child window Forum: Javascript Forum
Replies: 0 -
document.getElementById Forum: Javascript Forum
Replies: 0 -
document.getElementByID Forum: Javascript Forum
Replies: 6 -
Accessing a element of parent window in child window Forum: Javascript Forum
Replies: 1
-
09-02-2003, 09:19 AM #1
AutoOpen Document in new Window.
Hello everyone!
This ones got me stunned, although I'm almost sure, that the solution must be quite simple.
I know how to open a doc in a new window by clicking a link.
<a onClick="window.open'banner_help.php', 'BannerHelp','width=400,height=300')">[ ...help ]</a>
What I want to do is to have a php 'echo();' open a doc in a new window without having to click anything.
Usage: at the end of a php file there is a if...else junction. I want the 'if' clause to to echo a command that will cause a certain document to open in a new window without having to click a link first.
Your help is greatly appreciated,
a.rose
-
09-02-2003, 01:41 PM #2
Hello there.
Have your php echoi out javascript code like this -
Code:<script language="JavaScript"> window.open('banner_help.php', 'BannerHelp','width=400,height=300'); </script>
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
09-03-2003, 04:39 AM #3
Ouch. That simple? .....where's my duncecap?!? If you ever plan on creating a 'dork of the day' award - I hereby volunteer.
Thanx for the Help!
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum