HOW to create item that opens Sub + new page + new window?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
nickvasallo
Advanced
Advanced
Posts: 11
Joined: Tue Oct 23, 2007 8:53 am

HOW to create item that opens Sub + new page + new window?

Post by nickvasallo »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: HOW to create item that opens Sub + new page + new window?

Post by Ruth »

Hi,

Try this post

viewtopic.php?f=10&t=9316

Ruth
nickvasallo
Advanced
Advanced
Posts: 11
Joined: Tue Oct 23, 2007 8:53 am

Re: HOW to create item that opens Sub + new page + new window?

Post by nickvasallo »

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?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: HOW to create item that opens Sub + new page + new window?

Post by Ruth »

Well, here's my guess :lol: '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

Code: Select all

var newwindow; 
function mynewwindow(url) 
{ 
   newwindow=window.open(url); 

} 
Ruth
nickvasallo
Advanced
Advanced
Posts: 11
Joined: Tue Oct 23, 2007 8:53 am

Re: HOW to create item that opens Sub + new page + new window?

Post by nickvasallo »

again, thank you! you are a lifesaver
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: HOW to create item that opens Sub + new page + new window?

Post by John »

There's also the much easier target=_blank;.
John
nickvasallo
Advanced
Advanced
Posts: 11
Joined: Tue Oct 23, 2007 8:53 am

Re: HOW to create item that opens Sub + new page + new window?

Post by nickvasallo »

that actually just opens a new window, in order to do what i needed it was a bit more complex
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: HOW to create item that opens Sub + new page + new window?

Post by John »

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?
Guess I missed the part about 'in order to do what i needed it was a bit more complex' somewhere in that statement.
John
nickvasallo
Advanced
Advanced
Posts: 11
Joined: Tue Oct 23, 2007 8:53 am

Re: HOW to create item that opens Sub + new page + new window?

Post by nickvasallo »

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
Post Reply