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!
1 Attachment(s)
Re: How to open a page using javascript's window.open
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.
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");
Re: How to open a page using javascript's window.open
Way to go!!! Now you can feel proud about YOURSELF!!!!! :)