You are here: Re: Problems with opening new window without scrollbar and toolbar and with smaller size and width « HTML « IT news, forums, messages
Re: Problems with opening new window without scrollbar and toolbar and with smaller size and width

Posted by SpaceGirl on 10/19/71 11:17

Jerry Manner wrote:
> Hi
>
> I recently started programming html. I am trying to create a link to open a
> small browser window. I use the following html code.
>
> <a href="http.telegraaf.nl" toolbar="no" width="500" height="300" left="200"
> top="20" status="no" scrollbars="yes" resize="no" >Telegraaf Website</a>
>
> When I click the link it opens a new ( Large) window with scroll , toll bar.
> What must I change in the html code so that a small window will be opened?
>
> Regards
>
>

You cant do that. That's not HTML. There is no way in HTML to turn off
toolbars, or scrollbars in a parent window (only frames inside a
frameset, but lets not go there).

You need to write some script (javascript) to do what you are after - of
course bearing in mind for the 5% of people who have JS turned off it
wont work at all...


<script type="text/javascript">
function openPopup(myURL) {
window.open(myURL,"mypopup","width=250,height=250,status=no,resizable=yes,top=200,left=200");
}
</script>
<a href="mypage.htm" target="mypopup"
onclick="openPopup('mypage.htm');">click here</a>

 

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

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