Open the webpage without scrollbar,location...

S

simon lee

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
 
D

DU

lallous said:
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
 
S

Stephen Poley

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.
 

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

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top