• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 345
  • Last Modified:

javascript not working window.open

This script does not work for me and I dont know why I thought it would take away all the tool bars and title on the Internet Explorer tool bar and other things like the menu.  
g_newWindow = window.open("index.html", "_blank",  "location=no,titlebar=no,toolbar=no,menubar=no,status=no,resizable=yes",false);

     <title>Appeon Web Library </title> 
 <script language="javascript">    
       function startApp() {
       g_newWindow = window.open("index.html", "_blank", 
 <script language="javascript">

Open in new window

2 Solutions
Most browser are blocking such popup windows because they are considered to be harmfull. I tested this javascript in ie and it offer me to allow run script or no. If i allow it will be shown.
Best regards,
IE 9 is not allowing window.open for me as well;
trusted site
compatability view.
POPUP bloker disabled

But first, What browser version are you using?
Are you getting any script errors?
Have you tried moving the call to startapp into the header script tag.

Also, for IE 8 and above, Elements with Event Handlers (onclick etc ) may require a new tag
defer="defer" to prevent IE from failing SCRIPTS before the Page has finished Loading

and I am concerned about other DOM elements as well
The Browser wars are heating up again.

1030071002Author Commented:
I am running IE 8 and no scripting error. is there any thing equal to window.open which works with all the header. no startapp it is in the body should I try to put in the header

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now