HOW to create item that opens Sub + new page + new window?
-
- Advanced
- Posts: 11
- Joined: Tue Oct 23, 2007 8:53 am
HOW to create item that opens Sub + new page + new window?
I want to create "An Item that Opens a Submenu and Links to a New Page in a New Window" as per the instructions on the frames tutorial, I was directed here to pose the question.
Re: HOW to create item that opens Sub + new page + new window?
Hi,
Try this post
viewtopic.php?f=10&t=9316
Ruth
Try this post
viewtopic.php?f=10&t=9316
Ruth
-
- Advanced
- Posts: 11
- Joined: Tue Oct 23, 2007 8:53 am
Re: HOW to create item that opens Sub + new page + new window?
hi ruth, thanks. so if i wanted to simply open new page in a new window without any resizing or whatever which part of the code would I need?
Re: HOW to create item that opens Sub + new page + new window?
Well, here's my guess
'cause I don't really know, but I think you'd just eliminate anything after the url, keeping the last ) (url) Maybe you'd also need 'name', Try it with just the url part and see what happens. I'm not sure what the default is on a new window, if it has all the goodies, like scroll bars and such. I think it does.
edit: after experimenting, it's this
Ruth

edit: after experimenting, it's this
Code: Select all
var newwindow;
function mynewwindow(url)
{
newwindow=window.open(url);
}
-
- Advanced
- Posts: 11
- Joined: Tue Oct 23, 2007 8:53 am
Re: HOW to create item that opens Sub + new page + new window?
again, thank you! you are a lifesaver
Re: HOW to create item that opens Sub + new page + new window?
There's also the much easier target=_blank;.
John
-
- Advanced
- Posts: 11
- Joined: Tue Oct 23, 2007 8:53 am
Re: HOW to create item that opens Sub + new page + new window?
that actually just opens a new window, in order to do what i needed it was a bit more complex
Re: HOW to create item that opens Sub + new page + new window?
Guess I missed the part about 'in order to do what i needed it was a bit more complex' somewhere in that statement.so if i wanted to simply open new page in a new window without any resizing or whatever which part of the code would I need?
John
-
- Advanced
- Posts: 11
- Joined: Tue Oct 23, 2007 8:53 am
Re: HOW to create item that opens Sub + new page + new window?
Oh yes, I can see what you missed - please see 1st post: "An Item that Opens a Submenu and Links to a New Page in a New Window" as per the instructions on the frames tutorial. Not just a new window from a link.
What is needed an extra function within the java menu data file. Ruth gave me some code that works, thanks for trying though
What is needed an extra function within the java menu data file. Ruth gave me some code that works, thanks for trying though