You are here: Re: how to open a page(in the same browser window) when clicking « PHP Programming Language « IT news, forums, messages
Re: how to open a page(in the same browser window) when clicking

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация