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
<a href="link.html" target="_blank" /> click for map</a>
thanks
<script>
function winpop(url){
var w = screen.width;
var h = screen.height;
popup = window.open(url,'popup','s creenX=0,s creenY=0,l eft=0,top= 0,width='+ w+',height ='+h);
}
</script>
<a href="x.html" onClick="winpop(this.href) ;return false;">xxxx</a>
function winpop(url){
var w = screen.width;
var h = screen.height;
popup = window.open(url,'popup','s
}
</script>
<a href="x.html" onClick="winpop(this.href)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
and you missed a target in your post:
<a href="x.html" onClick="return !window.open(this.href,thi s.target,' width=1024 ,height=25 0')">xxxx< /a>
should be
<a href="x.html" target="_blank" onClick="return !window.open(this.href,thi s.target,' width=1024 ,height=25 0')">xxxx< /a>
Michel
<a href="x.html" onClick="return !window.open(this.href,thi
should be
<a href="x.html" target="_blank" onClick="return !window.open(this.href,thi
Michel
ASKER
Thanks very Michel and Third. I will try them out today and then close, Thanks
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
ASKER
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,thi