Google Answers Logo
View Question
 
Q: Open New Window Size from form drop down menu ( No Answer,   3 Comments )
Question  
Subject: Open New Window Size from form drop down menu
Category: Computers > Programming
Asked by: nyoung-ga
List Price: $5.00
Posted: 30 Oct 2004 15:37 PDT
Expires: 01 Nov 2004 11:21 PST
Question ID: 422225
See code below

<script type="text/javascript">
 function getLink(sel){
 var lnk = sel.options[sel.selectedIndex].value.split(",")
 if(lnk[1]){
 window.open(lnk[0],"","")
 } else {
  top.location=lnk[0]
 }
 }
</script>

I need to enter the window dimensions in the code above, please help. 
I am unsure where to put this code.

Thanks

Request for Question Clarification by maniac-ga on 31 Oct 2004 07:14 PST
Hello Nyoung,

If the response by crythias-ga is acceptable, I suggest you close this question.

If not, please make a question clarifiction indicating any further
problems. I have several web sites that include code similar to what
you are doing and explain the window open operations more clearly.

  --Maniac
Answer  
There is no answer at this time.

Comments  
Subject: Re: Open New Window Size from form drop down menu
From: crythias-ga on 30 Oct 2004 18:06 PDT
 
http://developer.irt.org/script/90.htm might help.
Subject: Re: Open New Window Size from form drop down menu
From: nyoung-ga on 31 Oct 2004 00:28 PDT
 
Thanks, I have already seen the way it should be done but I cannot
seem to get it to work with the code above.  i would be grateful if
you could let me know exactly where it goes.

Thanks
Subject: Re: Open New Window Size from form drop down menu
From: crythias-ga on 31 Oct 2004 05:16 PST
 
This was what was in the ORANGE bar of the link above:
window.open ('sesame.html', 'newWin',
'scrollbars=yes,status=yes,width=300,height=300')

So I would suggest that you would change your window.open line:
 window.open(lnk[0],"","scrollbars=yes,status=yes,width=300,height=300")

You may wish to adjust width and height to numbers other than 300,
according to your needs.

This is a free comment.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy