Open image in new window...Is it possible without picture being opened in a browser?
I've been wondering if there is any way to open a .png pictue 开发者_高级运维separately from the main window (window.open) but without the dreadful browser appearance, I would like to see only the image??
Thank you,
Andraz.
It sounds like you need the window.open function. You can pass a bunch of paameters into that to tell it to not show the address ar, toolbar, status bar, etc etc
You'd just neec to set the href/document source as the png file.
Anthony is correct.
window.open ("www.yoururl.com","mywindow","status=1");
you can use:
<script type="text/javascript">
function poponload()
{
testwindow = window.open("www.yoururl.com", "mywindow","location=0,status=0,scrollbars=0,width=700,height=500");
testwindow.moveTo(0, 0);
}
</script>
<body onload="javascript: poponload()">
You could look at a plugin like Colorbox which can show an image in the current window, quite nicely. Very easy to implement :)
If you want it in a new window without the toolbars and so on, you should look for documentation on window.open and look at the 3rd parameter it takes.
精彩评论