By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,377 Members | 1,688 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,377 IT Pros & Developers. It's quick & easy.

pop up windows on user command

P: n/a
We have an app in which we want to enable our users to open numerous
documents in new browser windows.

I got the new window open thing down but each time I open a new document it
opens it in the same popup window. I want to be able to select new documents
and open those selected documents one at a time in a new browser window as
the custormer selects a new document to open.

So how do I do that?
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
rf

"Paul Moffitt" <pm******@houston.rr.com> wrote in message
news:c4**************************@posting.google.c om...
We have an app in which we want to enable our users to open numerous
documents in new browser windows.

I got the new window open thing down but each time I open a new document it opens it in the same popup window. I want to be able to select new documents and open those selected documents one at a time in a new browser window as
the custormer selects a new document to open.

So how do I do that?


target="_blank"

Cheers
Richard.
Jul 20 '05 #2

P: n/a
how would I place target="_blank" in this script? I am triggering it
from an onclick event on an input button not a link

function openTxt() {
var subWindow

subWindow = window.open("help/fieldData.asp?txtData=" + ctrValue,
"sub", "toolbar=0,location=0,status=0,menubar=0,scrollbar s=1,resizable
=1, width=650, height=340, left=52px, top=100px")

if(!subWindow.opener) {
subWindow.opener = window
}
subWindow.focus()
}
Jul 20 '05 #3

P: n/a
pm******@houston.rr.com (Paul Moffitt) writes:
how would I place target="_blank" in this script? I am triggering it
from an onclick event on an input button not a link
Change "sub" to "_blank".
subWindow = window.open("help/fieldData.asp?txtData=" + ctrValue,
"sub", "toolbar=0,location=0,status=0,menubar=0,scrollbar s=1,resizable
=1, width=650, height=340, left=52px, top=100px")


You should not have spaces in the window configuration string. It makes
some browsers fail to open the window.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.