You are here: Re: Javascript window.open fails in IE « PHP Programming Language « IT news, forums, messages
Re: Javascript window.open fails in IE

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>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация