What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Quick help with javascript

Quick help with javascript
Author: Message:
user27089
Disabled Account


Posts: 6321
Joined: Nov 2003
Status: Away
RE: Quick help with javascript
in the <head> </head> area put this:

code:
<script language="javascript">

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

</script>

then to make the link it would be:

code:
<a href="url" onclick="NewWindow(this.href,'name','400','400','yes');return false">Name of Url</a>


This post was edited on 04-27-2005 at 08:30 PM by user27089.
04-27-2005 08:30 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Quick help with javascript - by Supersonicdarky on 04-27-2005 at 08:21 PM
RE: Quick help with javascript - by user27089 on 04-27-2005 at 08:30 PM
RE: Quick help with javascript - by RaceProUK on 04-27-2005 at 09:52 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On