开发者

How to serve a page with only a title bar and content, nothing else?

I have a web page jammed full with a few hundred rows of tabular numerical data. It's fearsome. The user wants to see as many data rows as he can in one single view, without scrolling vertically. I'm thinking to serve that page with just a title bar -- no back or refresh button, no address开发者_Python百科 bar, no Google toolbar, no status pane, nothing but a title bar. The user reaches the page by way of a normal html link.

Is there a way to do that in the CGI that writes the page? The CGI is already writing content and cache-control headers.

If not, then (next best thing) is there a way to do it with JavaScript, without opening a new browser window, perhaps in the onload event handler?

Thanks!


Is there a way to do that in the CGI that writes the page?

No.

If not, then (next best thing) is there a way to do it with JavaScript, without opening a new browser window, perhaps in the onload event handler?

Well, you could, on onload open a new ("chromeless") browser window with your page, but that's about it. You can't control the user's current browser window from within an HTML page.


Pretty sure you can't do this cross browser and I'm positive you can't do it server side. However most browsers allow a full screen view which the user can get to.

In Internet Explorer and firefox the shortcut is F11. I know that's not the solution your looking for. However I'm pretty sure thats all there is.


I didn't see n0nick answer when I typed mine up. I agree with his answer I'm leaving mine in here for the F11 part.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜