View Full Version : New window on NS 6.2
shernoam
12-15-2001, 07:18 PM
Hi!
How can I make a link that will be opened in a new window? (in ns 6.2) ?
How can I send ns 6.2 a link to goto from the side bar?
(how to send the main window a link to goto from the side bar?)
scoutt
12-16-2001, 01:00 AM
I am not sure I understand. you want your link to goto the side bar? or you want the sdebar to dispaly your link.
I am guessing the side bar is like IE's bar. that is coming from Netscape or your registry. don't think you can put anyhting over there.
and making a link open a new window should be the same as any other browser.
<head>
function popUp() { window.open('yourpage.html','popWin','resizable=yes,scrollbars=yes,width=580,height=460,toolbar=yes, location=yes');
}
</head>
then call it like this
<A href="#" onClick="popUp()">some text</a>
shernoam
12-16-2001, 06:58 AM
doesn't work...
shernoam
12-16-2001, 07:50 AM
it shoul be:
<A href="#" onClick="popUp(1.html)">some text</a>
------------------------------^
ok...
but how can I make it open with the users resolution...
(if the user have 800x600 -then let the popup be 800x600 window... if he has 1024x784 then let the popup be 1024x784 window.......)
scoutt
12-16-2001, 12:52 PM
then you will have to put a detection script in the page that loads in the popup.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function redirectPage() {
var url640x480 = "index640.htm";
var url800x600 = "index800.htm";
var url1024x768 = "index1024.htm";
if ((screen.width == 640) && (screen.height == 480))
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
else window.location.href= url640x480;
}
// End -->
</script>
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.