<body>

<a title="Image" target="_blank" class="style1"
					  onclick="window.open('Img_page.html', 'Image', 'resizable=no,scrollbars=no, status=no,
					  toolbar=no,titlebar=no,menubar=no, left=0,top=0,width=400px,height=400px, ')">
					  <img src="images/center_image.jpg" width="89" height="70" border="0"></a></td>

</body>

Im using this code in my main page i want to remove the menus from the new image page where i just want to show the image with resizable page and maximize button must be disabled
Thanx

Dani AI

Generated

: opening a separate window is the classic way, and is right that your syntax looks like the usual popup approach; seeing it work in IE6 is expected because older IE honored those window features more strictly.

Important reality check: modern browsers intentionally ignore or limit many window.open features (toolbar/address bar/status/titlebar removal, disabling maximize, forced non-resizable windows) for security and UX reasons. Disabling the OS window chrome or the maximize button is not possible from a page. See the browser behavior notes on window.open for details: Window.open — MDN.

Two practical, reliable approaches:

  • Use an in-page overlay/lightbox so there is no browser chrome to hide. That gives full control over layout and sizing across browsers.
  • If a separate window is required, make the image page minimal (no margins/scrollbars) and offer Fullscreen as a user action. Example CSS for the image page:
/* Img_page.html */
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
img { display: block; max-width: 100%; max-height: 100%; margin: auto; }

And a small user-initiated fullscreen trigger (browsers require a user gesture):

document.getElementById('img').addEventListener('click', function () {
  document.documentElement.requestFullscreen();
});

For details on fullscreen behavior, see the Fullscreen API guide: Fullscreen API — MDN. If using a popup, expect browser differences and test on your target browsers; scripted resize or feature suppression is often ignored.

Recommended Answers

All 2 Replies

you're code is correct please check once

Worked for me in IE6.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.