Opening a Customized New Window in FrontPage 2002

J

Juho Manka

I want to open a customized new window. I'm using the following javascript code

<a href="javascript:window.open('whatever.htm', null, 'height=300, width=550, directories=no, location=no, menubar=no, resizable=no, status=no, toolbar=no');">Pop goes the window!</a

This does open a new customized window, but the old (parent) page changes as well and loads a blank page that say
[object] on it

How can I open a customized new window without changing the page in the current window? The [object] page seems to be some sort of error

....And no I can't use spawn because I'm using a computer on which I don't have the rights to install any new programs.
 
J

Jim Buyens

Add a void(0) call to the end of your javascript
expression, as in:

<a href="javascript:window.open('whatever.htm', null,
'height=300, width=550, directories=no, location=no,
menubar=no, resizable=no, status=no, toolbar=no');
void(0);">Pop goes the window!</a>

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------

-----Original Message-----
I want to open a customized new window. I'm using the following javascript code:

<a href="javascript:window.open('whatever.htm',
null, 'height=300, width=550, directories=no, location=no,
menubar=no, resizable=no, status=no, toolbar=no');">Pop
goes the window! said:
This does open a new customized window, but the old
(parent) page changes as well and loads a blank page that
says
[object] on it.

How can I open a customized new window without changing
the page in the current window? The [object] page seems to
be some sort of error.
....And no I can't use spawn because I'm using a computer
on which I don't have the rights to install any new
programs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top