Welcome to TalkGraphics.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2006
    Posts
    3

    Default How to open a page using javascript's window.open

    Hello,

    I am trying to open a link on a submenu via javascript's window.open method. The reason is the developer's want to open a browser without the browser menus. Is there a way to do this? The tried doing the below sample, the new browser opens, but the parent window just has [object] on the page. I guess it's looking for something to pass to it.

    sample:

    submenuItem("Yahoo","javascript:window.open('www.y ahoo.com','','menu=no')","_blank","_nav_plain");

    Any help is appreciated!

  2. #2
    Join Date
    Dec 2005
    Location
    Greenfield, WI USA
    Posts
    3,444

    Default Re: How to open a page using javascript's window.open

    hmmmmmm...
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	_Image1.jpg 
Views:	1628 
Size:	40.2 KB 
ID:	29691  

  3. #3
    Join Date
    Sep 2006
    Posts
    3

    Default Re: How to open a page using javascript's window.open

    Thanks for the reply...

    However, I don't think that would cause the problem...that is normally where you put the title of the popup window. Just to be sure, I added something there and it's doing the same thing.

    I just retested my page...here is what it is doing:
    1. I click on the submenu link
    2. It pops up a window, then popups another window with the actual page. The 1st window that popped up has the [object] displayed.
    Last edited by r00kie; 15 September 2006 at 04:14 PM. Reason: add new text

  4. #4
    Join Date
    Sep 2006
    Posts
    3

    Default Re: How to open a page using javascript's window.open

    I Fixed it!!

    Just in case anyone wants to do this:



    submenuItem("Yahoo","javascript:{void window.open('www.yahoo.com','','menu=no');}","_par ent","_nav_plain");
    Last edited by r00kie; 15 September 2006 at 06:59 PM. Reason: spelling

  5. #5
    Join Date
    Dec 2005
    Location
    Greenfield, WI USA
    Posts
    3,444

    Default Re: How to open a page using javascript's window.open

    Way to go!!! Now you can feel proud about YOURSELF!!!!!

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •