Link to home
Start Free TrialLog in
Avatar of sahrom
sahrom

asked on

open new window with href and have it maximized in IE 6

I am trying to ensure that all my hrefs on a page open the new pages in a  maximized  window.  I only need this for IE 6 browser, such as the below link

<a  href="link.html" target="_blank" /> click for map</a>

thanks

Avatar of sahrom
sahrom

ASKER

so if I then have the below,

does target="_blank"  = this.target ?
what would  I use to maximize the window, and if I have many of these links on the page, is there any way to move this into a javascript href file?  Thanks

<a href="x.html"  onClick="return !window.open(this.href,this.target,'width=1024,height=250')">xxxx</a>
<script>
  function winpop(url){
    var w = screen.width;
    var h = screen.height;
    popup = window.open(url,'popup','screenX=0,screenY=0,left=0,top=0,width='+w+',height='+h);
  }
</script>

<a href="x.html"  onClick="winpop(this.href);return false;">xxxx</a>
SOLUTION
Avatar of third
third
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
and you missed a target in your post:
<a href="x.html"  onClick="return !window.open(this.href,this.target,'width=1024,height=250')">xxxx</a>
should be
<a href="x.html"  target="_blank" onClick="return !window.open(this.href,this.target,'width=1024,height=250')">xxxx</a>

Michel
Avatar of sahrom

ASKER

Thanks very Michel and Third.  I will try them out today and then close, Thanks
Avatar of sahrom

ASKER

thanks again the window.onload = function(){ worked well, except it lead to another problem where windows were sized to another sizd.  I will post do a new post for this problem