|
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]
|