Open Browser in New Window Using Javascript

M

Matthew

Microsoft Publisher 2003
Open Browser in New Window Using Javascript
ex from:
Open Browser in New Window Using Javascript

<script language="JavaScript" type="text/javascript"> <!-- function
Show(Url, Name, Features) { window.open(Url, Name, Features); } // -->
</script>
+
javascript:Show('http://southpark.username.com/gallery/ ', 'newwindow',
'toolbar=no,scrollbars=yes,resizable=yes,height=250,width=250')

does not work at all, if I replace the functio show and instead put:
javascript:window.open('http://southpark.username.com/gallery/')
it works fine, but the parent window displays:
[object Window]


You can see this behaviour by clicking on the "Click Here for Photo Gallery"
link on the following URL:
http://southpark.username.com/index_files/Page348.htm


How do I get javascript to open a new window without changing the parent?

thank you:
Matthew
 
M

Matthew

Thank you David - This worked like a charm.

:Matthew

David Bartosik said:
In the future note that web issues are to be addressed in our web forum.

I cover this topic on our site in the article -
http://www.publishermvps.com/Default.aspx?tabid=99

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com

Matthew said:
Microsoft Publisher 2003
Open Browser in New Window Using Javascript
ex from:
Open Browser in New Window Using Javascript

<script language="JavaScript" type="text/javascript"> <!-- function
Show(Url, Name, Features) { window.open(Url, Name, Features); } // -->
</script>
+
javascript:Show('http://southpark.username.com/gallery/ ', 'newwindow',
'toolbar=no,scrollbars=yes,resizable=yes,height=250,width=250')

does not work at all, if I replace the functio show and instead put:
javascript:window.open('http://southpark.username.com/gallery/')
it works fine, but the parent window displays:
[object Window]


You can see this behaviour by clicking on the "Click Here for Photo
Gallery"
link on the following URL:
http://southpark.username.com/index_files/Page348.htm


How do I get javascript to open a new window without changing the parent?

thank you:
Matthew
 
M

Matthew

David Bartosik said:
In the future note that web issues are to be addressed in our web forum.

I cover this topic on our site in the article -
http://www.publishermvps.com/Default.aspx?tabid=99

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com

Matthew said:
Microsoft Publisher 2003
Open Browser in New Window Using Javascript
ex from:
Open Browser in New Window Using Javascript

<script language="JavaScript" type="text/javascript"> <!-- function
Show(Url, Name, Features) { window.open(Url, Name, Features); } // -->
</script>
+
javascript:Show('http://southpark.username.com/gallery/ ', 'newwindow',
'toolbar=no,scrollbars=yes,resizable=yes,height=250,width=250')

does not work at all, if I replace the functio show and instead put:
javascript:window.open('http://southpark.username.com/gallery/')
it works fine, but the parent window displays:
[object Window]


You can see this behaviour by clicking on the "Click Here for Photo
Gallery"
link on the following URL:
http://southpark.username.com/index_files/Page348.htm


How do I get javascript to open a new window without changing the parent?

thank you:
Matthew
 

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