473,386 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Open the webpage without scrollbar,location...

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
Jul 20 '05 #1
4 6244
Hello,

Use javascript and the window.open() method.

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

Regards,
Elias
"simon lee" <th****@yahoo.com> wrote in message
news:bq**********@hfc.pacific.net.hk...
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

Jul 20 '05 #2
DU
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

Jul 20 '05 #3
On Wed, 3 Dec 2003 15:05:46 +0800, "simon lee" <th****@yahoo.com> 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
Jul 20 '05 #4
this site www.javascript.com should have a copy & paste script for what you're
after.
"simon lee" <th****@yahoo.com> wrote in message
news:bq**********@hfc.pacific.net.hk...
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

Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: simon lee | last post by:
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...
4
by: Cat Laugel | last post by:
Hello, I am redesigning my website and would like to have the text scroll within the webpage without the page itself scrolling.... if you understand what I mean... ;-) I want a very sleek look...
2
by: Michael | last post by:
A webpage has the following js: function openPDF(PDFdoc) { // Open a blank window and target PDFdoc into it. // PDFdoc = web address (URL) of the PDF document to present in a pop-up window
7
by: Merlin | last post by:
Hi there, I have a problem with opening new windows with JS. If the webpage did not complete loading due to any reason a click on a link which is supposed to open a small new other window loads...
1
by: Simon Lee | last post by:
Dear all, I write a following form in the html page and link to the webpage without scrollbar,menubar, with a fixed size as follow: ------------------------- <form name="formsearch"...
22
by: Colin McGuire | last post by:
I apologize for posting yet another scrollbar question. Here is my code. All I want is for a diagonal line to appear from coordinates (0,0) to (width,height) in a usercontrol regardless of whether...
1
by: matt123 | last post by:
Hi everyone. I've encountered a problem when attempting to open a file for use in a class with wxpython. I have my panel layout in a class, and one of the buttons on my frame will open a selected...
3
by: toffee | last post by:
Hi all, I got a pre-formatted spreadsheet. would it be possible using js to copy the data from a table on the current webpage, open the spreadsheet and paste the content ? if so, anyone got any...
1
by: Merlin Morgenstern | last post by:
Hi there, I do have a JS-function that does open windows in a specific format to display small pices of information, like member comments. Since a while I have found that this will not work on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.