|
Posted by Mick White on 09/20/05 17:26
G-Man wrote:
> Thanks to all the suggestions. It turned to be the space in the window
> name.
>
> To be complete, here is the code that is sent to the browser (minus the
>
> PHP, and after the change to an "_" in the window name):
>
> <HTML>
> <HEAD>
> <SCRIPT LANGUAGE="Javascript" TYPE="text/javascript">
> <!--
> function open_window(url) {
> var NEW_WIN = null;
> NEW_WIN = window.open ("", "Record_Viewer",
> "toolbar=no,width=850,height=575,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no");
> NEW_WIN.location.href = url;
> }
>
> //-->
> </SCRIPT>
You have ignored some good advice, here's how I would do it:
<SCRIPT TYPE="text/javascript">
function open_window(url) {
var NEW_WIN = null;//questionable
NEW_WIN =
window.open(url,"Record_Viewer","width=850,height=575,scrollbars,resizable");
}
</SCRIPT>
[Back to original message]
|