Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.open IE 7

Status
Not open for further replies.

thompom

Technical User
Dec 4, 2006
395
GB
Hi,

I use the following to open a new window but it doesnt work in IE 7

Code:
<a href="autobase/stockview.asp?vehicleid=<%=Server.URLEncode(x_vehicleid)%>" onclick="window.open(this.href, this.target,'status=no,resizable=notoolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,width=638,height=640,left=180, top=50');return false;">
CLICK
</a>

thansk MG
 
thanks for your reply - this works fine in IE6 and FF.
one thing i have IE7 as standalone so could it be a bug because of the way i have it installed ? - i say this because when i click a link IE 7 pauses for a moment like its going to do something

Code:
<a href="autobase/stockview.asp?vehicleid=AETV98090933" onclick="window.open(this.href, this.target,'status=no,resizable=notoolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,width=638,height=640,left=180, top=50');return false;"><img src="images/tabbot1_01.gif" alt="view" border="0" /></a>
 
OK - So you definately have no "target" attribute, and yet you're using it for the window name. Change "this.target" to be '' and see what happens... or set a target attribute.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
sorry for no reply BillyRayPreachersSon,

but tried it on a machine with IE 7 as the only browser and seemed to work fine - then Fasthosts got hacked and my site was down all last week and forgot about it.

need to do further investigation - the page in question is

[click on a car]

will have a look soon - thanks for checking back and apologees for no reply
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top