Problems with opening new window without scrollbar and toolbar and with smaller size and width

J

Jerry Manner

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
 
D

David Dorward

Jerry said:
I recently started programming html.

HTML is a document markup language, not a programming language.
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>

http://validator.w3.org/
http://w3.org/TR/html4/

You seem to be getting confused between JavaScript and HTML. Opening new
windows is generally[1] a bad idea anyway.

http://www.allmyfaqs.com/faq.pl?Console_window

[1] In the sense that I'm yet to encounter a circumstance where it was a
good idea, but I'm open minded enough to admit that it might be a
possibility, however remote.
 
S

SpaceGirl

Jerry said:
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top