PDA

View Full Version : new window , no tool bar !!!??


deepsecret
12-03-2007, 10:02 PM
hi all

i really need a help . and i would be appreciated for any response


i have my own page , there are many links , i want them to be :

1 - loaded in new window 350 px*450 px .

2 - the new window does not have
tool bar
address bar
status bar
3- the new window has a link for closing it ( close window) . :confused:

jcdevelopment
12-03-2007, 10:22 PM
<script type="text/javascript">
function showPop() {
var slide_window = window.open("something.html","window_name","height=601,width=802",);

}


</script>

a liitle more help (http://www.yourhtmlsource.com/javascript/popupwindows.html#openingnewwindows)

Philip M
12-04-2007, 07:35 AM
In the main page:-

<a href="yourwindowsource.html" onclick="Start(this.href); return false">Click here to open the window</a>

<script type = "text/javascript">

function Start(page) { // do not use any spaces in the windows features list.
OpenWin = this.open(page,"CtrlWindow","top=80,left=100,screenX=100,screenY=80,width=350,height=450,toolbar=no,menubar=no,location=no, scrollbars=no,resizable=yes");
}

function closepop() {if (OpenWin != null) OpenWin.close() }
window.onunload = closepop;

</script>


and in the pop-up page

<a href="javascript:window.close()">Close This Window</a></font></p>