Posted by Tim Roberts on 05/25/05 07:49
randompeep2000@yahoo-dot-com.no-spam.invalid (clod) wrote:
> Tim Robertswrote:
>>
>>The contents of an event handler are always Javascript, and the
>>string "<script>" is a syntax error in Javascript. Do this instead:
>>
>> onClick="window.location='page.html'"
>
>by doing that it will still open a new browser window, isn't there a
>way to keep it in the same window?
In saying that, you are simply confirming that you didn't even try it.
Assigning to window.location replaces the contents of the current browser
window. It does not open a new one.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
[Back to original message]
|