Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:31
Javascript menu link adding/modifying question,plz help
Poster: foufou
Dated: Tuesday April 27 2004 - 19:46:57 BST
hi
I needed to make a menu link targets 2 pages , each page in one of 2 separate iframes on mainpage, i searched the web, and came up with this javascript tip/solution:
<a href="javascript:top.frames[x].location.href='URL1';
top.frames[x].location.href='URL2';">Change Frames</a>
where "x" can be frames ID or NAME
how can i embed this into my menu links?
Thank u very much for ur patience
Poster: Maz
Dated: Wednesday April 28 2004 - 8:01:33 BST
I don't know javascript. but it might be possible to use
text=<place it here>;type=html;
or the
javascipt=
I think the first will work because it allows you to create more than one link.
maz
Poster: foufou
Dated: Wednesday April 28 2004 - 8:27:57 BST
hello
Thank you for your reply,
"text=<place it here>;type=html"
Like this?:
text=<<a href="javascript:top.frames[x].location.href='URL1';
top.frames[x].location.href='URL2';">Change Frames</a>>;type=html;
i don't know much about html, ..
I appreciate
Poster: foufou
Dated: Wednesday April 28 2004 - 8:54:45 BST
Tried it, didn't work; the menu just disappears from the page, for the sake of lack of html knowledge i have , i 've tried it again this way:
text=<a href="javascript:top.frames[x].location.href='URL1';
top.frames[x].location.href='URL2';">Change Frames</a>;type=html;
With single "<" or ">"
Same result..
What shall i have to do