On my menu I want to be able to launch a page in its' own window. Like the function target_new. Not sure how to do it in the following code in my menu.
aI("text=Network Services;url=/services_network_services.html;");
TIA Larry
Linking to a page outside of my site
Hi
try
hope this helps
Michael
try
Code: Select all
aI("text=Network Services;url=/services_network_services.html;target=_blank;");
hope this helps
Michael
WOW, that was fast. Thanks, but...
What if I wanted to launch a link in its' own window like below:
<a href="javascript: window.open('/myip.asp','','status=no, toolbar=no, resizable=yes, scrollbars=yes, location=no, width=700, height=300'); void('');" class="5">Your IP Address is...</a>
Thanks again.
<a href="javascript: window.open('/myip.asp','','status=no, toolbar=no, resizable=yes, scrollbars=yes, location=no, width=700, height=300'); void('');" class="5">Your IP Address is...</a>
Thanks again.
Hi
pls see the sample page
http://milonic.com/menusample11.php
comments, see the source etc.
hope this helps.
Michael
pls see the sample page
http://milonic.com/menusample11.php
comments, see the source etc.
hope this helps.
Michael
Re: WOW, that was fast. Thanks, but...
just put the javascript after the "url=" part of the aI()ldeeder wrote:What if I wanted to launch a link in its' own window like below:
<a href="javascript: window.open('/myip.asp','','status=no, toolbar=no, resizable=yes, scrollbars=yes, location=no, width=700, height=300'); void('');" class="5">Your IP Address is...</a>
Thanks again.
So the that link would be:
Code: Select all
aI("text=Your IP Address is...;url=javascript:window.open('/myip.asp','','status=no, toolbar=no, resizable=yes, scrollbars=yes, location=no, width=700, height=300');");
-
- Beginner
- Posts: 3
- Joined: Tue Mar 28, 2006 1:46 am
- Contact:
New Open Window
When I use that javascript code to open a new window as described above, a strange situation occurs. The new window opens properly, however, the original page goes blank and the text: [object] shows up. In FireFox, it is [object Window].
Is there a setting that should be entered to prevent the original page in the original window from changing?
Thanks,
Victor
Is there a setting that should be entered to prevent the original page in the original window from changing?
Thanks,
Victor
Hi,
Why don't you try putting the function at the top of the menu data file, and then just call it in the aI string. I think it would be something like this.
Then in whatever menu, in the aI string it would be
Ruth
Why don't you try putting the function at the top of the menu data file, and then just call it in the aI string. I think it would be something like this.
Code: Select all
fixMozillaZIndex=true; //Fixes Z-Index problem with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=300,width=700,left=100,
top=100,resizable=yes,scrollbars=yes,toolbar=no,location=no,status=no');
}
Code: Select all
aI("text=item;url=javascript:newwindow('http://whatever/');");