PDA

View Full Version : Refresh script



Briggs
01-12-2008, 12:09 AM
Hey, so here's my problem.
I am using


<script language="javascript"><!--
function login(filename) {
var remWinWdh = 300;
if (remWinWdh > screen.availWidth) {
remWinWdh = screen.availWidth - 50;
}
var remWinHgt = 200;
if (remWinHgt > screen.availHeight) {
remWinHgt = screen.availHeight - 50;
}
var adj4NN = Number(navigator.appName == "Netscape" ? -5 : 0 );
var scrLeft = parseInt((screen.availWidth / 2) - (remWinWdh / 2));
var scrTop = parseInt((screen.availHeight / 2) - (remWinHgt / 2));
var width = Number(remWinWdh) + adj4NN;
newWin = open(filename, 'Login', 'width=' + width
+ ',height=' + remWinHgt + ',left=' + scrLeft
+ ',top=' + scrTop
+ ', menubar=no, location=no, directories=no, toolbars=no,'
+ ' status=no, resizable=yes, hotkeys=no, scrollbars=yes');
}
--></script>

Which opens a window of course :cool:

ok, I am using SMF message board system with login and whatnot available on my main pages.
Well I want it so when you login and redirect (basic things with SMF), I want it to take your main browser to another page.

something along the lines of

<a href="javascript:window.close()">Close</a>
I guess it would be, perhaps?

Thanks in advance,
Briggs