Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Open the webpage without scrollbar,location...

Reply
Thread Tools

Open the webpage without scrollbar,location...

 
 
simon lee
Guest
Posts: n/a
 
      12-03-2003
Dear all,

I have a html code like

<a href="product.html" target=new>product</a>

Although the file "product.html" can be opened at the new page, but with
scrollbar, menu, location, and so on, please help me to write the javascript
code or others in order to remove all such features when open this page,
thanks.

Regards,
Simon


 
Reply With Quote
 
 
 
 
lallous
Guest
Posts: n/a
 
      12-03-2003
Hello,

Use javascript and the window.open() method.

Example:
window.open('http://www.yoursite.com/', 'windowName', 'scrollbars=no');

Regards,
Elias
"simon lee" <> wrote in message
news:bqk20a$l6v$...
> Dear all,
>
> I have a html code like
>
> <a href="product.html" target=new>product</a>
>
> Although the file "product.html" can be opened at the new page, but with
> scrollbar, menu, location, and so on, please help me to write the

javascript
> code or others in order to remove all such features when open this page,
> thanks.
>
> Regards,
> Simon
>
>



 
Reply With Quote
 
 
 
 
DU
Guest
Posts: n/a
 
      12-03-2003
lallous wrote:
> Hello,
>
> Use javascript and the window.open() method.
>
> Example:
> window.open('http://www.yoursite.com/', 'windowName', 'scrollbars=no');
>
> Regards,
> Elias


This will not work reliably in Opera 7.x and Mozilla 1.3+ since users
have the capabilities to impose scrollbars if they are needed. From the
beginning, it should have been asked why is it important or desirable to
remove the widget by which an user can notice that there is more content
than what appears within the rendered area of the window (visual
notification) and by which an user can reach such content (standard
browser functionality). It always goes against the webdesigner's own
best interests to remove scrollbars.

In many cases, to avoid scrollbars from appearing, one only needs to
control the margin and padding on the body element and to set the
overflow to auto for MSIE 5+ for windows. Again, removing scrollbars
when they are needed, that is when content overflows window dimensions
goes against sane accessibility to content and standard usability.

One last thing. As coded, the window.open() call will remove as well the
window resizability and the statusbar. I do not know a single user who
believes that a crippled window (no scrollbars, no resizability) like
that is suitable for surfing.
What is the purpose of removing the statusbar? The statusbar should be
the toolbar responsible for relaying to the user genuine reliable
non-altered browser information about connection, download progress, url
addresses, http requests, secure connection - SSL icon (padlock)-.
Removing statusbar or spamming the statusbar with advertisements,
solliciting is always perceived as excessive force and abusive powers by
users.

DU

 
Reply With Quote
 
Stephen Poley
Guest
Posts: n/a
 
      12-03-2003
On Wed, 3 Dec 2003 15:05:46 +0800, "simon lee" <> wrote:

>I have a html code like
>
> <a href="product.html" target=new>product</a>
>
>Although the file "product.html" can be opened at the new page, but with
>scrollbar, menu, location, and so on, please help me to write the javascript
>code or others in order to remove all such features when open this page,
>thanks.


Suppose a reader's font-size settings (or whatever) mean that the page
is larger than the new window. How is he/she supposed to read it if you
have removed the scroll-bars?

If you want to people to read your site, leave their scroll-bars alone.

--
Stephen Poley
 
Reply With Quote
 
Andrew Murray
Guest
Posts: n/a
 
      12-06-2003
this site www.javascript.com should have a copy & paste script for what you're
after.


"simon lee" <> wrote in message
news:bqk20a$l6v$...
> Dear all,
>
> I have a html code like
>
> <a href="product.html" target=new>product</a>
>
> Although the file "product.html" can be opened at the new page, but with
> scrollbar, menu, location, and so on, please help me to write the javascript
> code or others in order to remove all such features when open this page,
> thanks.
>
> Regards,
> Simon
>
>



 
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
cause webpage one to reload when webpage two is closed. Paul ASP .Net 14 06-19-2008 03:02 PM
Clipping a remote webpage with Javascript/XPath and including in a "local" webpage soren625 Javascript 2 12-12-2006 02:09 PM
check if a webpage is forwarding to a other webpage martijn@gamecreators.nl Python 1 09-06-2005 02:27 PM
Email contents of webpage or Form on webpage w/o using Server scripting sifar Javascript 5 08-24-2005 05:47 PM
Open the webpage without scrollbar,location... simon lee HTML 4 12-06-2003 05:02 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