|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Question about Header.
What can I do:
PHP Code:
to open in a new window? Thanks. |
|
#2
|
||||
|
||||
|
To open in a new window, you'll have to either give your form action a target of "_blank" (assuming you're taking input from a form in this script) or you'll have to print out javascript code that opens a window. The header function works independently of the browser/window DOM.
|
|
#3
|
||||
|
||||
|
The Javascript code might look something like this:
<body onload="javascript:window.open('url.htm');"> However this can be triggered anywhere... a link click, an image mouse over, and so on... W3schools.com has some good examples using the Javascript Window Object Open a window when clicking a button How you can display a new window. How to open a new window and control its appearance How you can display a new window, but also decide the new window's appearance. Refer to this site for more examples: http://www.w3schools.com/js/js_window.asp |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Question about Header. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|