How do I define the size of a new window using vbscript?

Hi, I'm using the following code to open a new window in my web page.

Does anyone know how I can define the window size to say 600 * 500 ?

======================================================
<SCRIPT Language="VBSCRIPT">
function openLink(strURL)
     window.open strURL
End function
</SCRIPT>

<a href="#" onClick="openLink('http://experts-exchange.com')">My Link</a>
======================================================

Thanks in advance,

JK
jakekulaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cristy56Commented:
<SCRIPT Language="VBSCRIPT">
function openLink(strURL)
     win = window.open(strURL,"myWin","height=400,width=400")
End function
</SCRIPT>
<a href="#" onClick="openLink('http://experts-exchange.com')">My Link</a>


==========
Cristy
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cristy56Commented:
Some more additional info for you about open new window :
http://www.pageresource.com/jscript/jwinopen.htm

Cheers,
Cristy
0
jakekulaAuthor Commented:
Thanks for that, can you define co-ordinates as well in the vbscript?
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

cristy56Commented:
Must be able to do that in Javascript, but not sure if that can be done as well with VBscript.

Cristy
0
cristy56Commented:
Give u an example on how to position an image using Javascript :

<html>
<script language = JavaScript>
function changeXY(x, y)
{
     document.images("testimage").style.left = x;
     document.images("testimage").style.top = y;
}
</script>
<body>
     <img name = testimage src = "test.gif" style = "position : absolute; top = 0; left = 0">

     <form name = test>
     <input name = userX type = text>
     <input name = userY type = text>

     <input type = button value = Change! onClick = "changeXY(document.forms('test').userX.value, document.forms('test').userY.value)">
     </form>
</body>
</html>

=====================
Cheers,
Cristy
0
jakekulaAuthor Commented:
Thank you, I will keep researching
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.