Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Problems with opening new window without scrollbar and toolbar and with smaller size and width

Reply
Thread Tools

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

 
 
Jerry Manner
Guest
Posts: n/a
 
      05-30-2005
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


 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      05-30-2005
Jerry Manner wrote:

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

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
 
 
 
SpaceGirl
Guest
Posts: n/a
 
      05-30-2005
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>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
window.open with toolbar=1 and without google toolbar ? pcouas Javascript 0 02-19-2007 08:28 AM
font of the active title bar appears smaller and smaller automatic =?Utf-8?B?dGhhbmt5b3U=?= Windows 64bit 1 10-12-2005 09:24 AM
Opening a new browser window to a specific size without the menu bar and address window. UJ ASP .Net 2 06-27-2005 08:21 PM
DSLR, Smaller Sensor, Smaller TTL Viewfinder? Which has the largest? Geshu Iam Digital Photography 7 08-17-2004 06:52 PM
Bigger image size and lower quality vs. Smaller image size and higher quality Desmond Digital Photography 5 09-27-2003 04:08 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57