...

View Full Version : Change onClick='top.location.href="URL"' to Open New Window



peterinwa
03-09-2005, 01:01 AM
How can I change:

onClick='top.location.href="URL"'

to have it open the URL in a new window?

I tried target="_blank" and got an error message:

<table width=500 bgcolor='#000000' cellpadding=2 cellspacing=0 align=center onClick='top.location.href="URL" target="_blank"' onMouseOver='this.style.cursor="pointer"'><tr><td>...

Thanks, Peter

_Aerospace_Eng_
03-09-2005, 02:35 AM
<table width=500 bgcolor="#000000" cellpadding=2 cellspacing=0 align=center onClick="window.open('blah.com')"
onMouseOver='this.style.cursor="pointer"'><tr><td>

crocodile
03-09-2005, 03:50 AM
<table width=500 bgcolor='#000000' cellpadding=2 cellspacing=0 align=center onClick="window.open('http://url.com','target-name')" onMouseOver='this.style.cursor="pointer"' onMouseOver='this.style.cursor="default"'><tr><td>...

peterinwa
03-09-2005, 05:19 AM
Thanks, worked great.

Peter



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum