1. able2know
  2. » Javascript - How to resize new window?
1
   

Javascript - How to resize new window?

 
 
echi
 
Reply Fri 8 Feb, 2008 09:23 pm
I have a JavaScript link that opens another site in a new window. How can I specify the size of the new window?
Thanks!
[edit]
I found out that you can't mess with javascript code. I must be the last to know.

  1  
Reply Wed 18 Jun, 2008 08:20 pm
Well here's the info anyway:

Code:<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=600,width=800');
if (window.focus) {newwindow.focus()}
return false;
}

// -->
</script>


Code:
<a href="destinationURL.html" onclick="return popitup('popupex.html')">Link</a>
0 Replies
 
 

 
  1. able2know
  2. » Javascript - How to resize new window?
Copyright © 2008 able2know :: Page generated in 0.15 seconds on 12/02/2008 at 01:35:02 :: Active ingredients: LAMP, XHTML, CSS, JavaScript
Top End