AccessURLRedirect in a New Window?

For general issues related to PWB v2.

Moderators: Tyler, Scott, PWB v2 Moderator

Post Reply
jsomerfield
Participant
Participant
Posts: 19
Joined: Tue Dec 11, 2007 3:11 pm

AccessURLRedirect in a New Window?

Post by jsomerfield »

Hi,

I managed to get an html denial web page to appear using AccessURLRedirect. My question is: can you get this html page to open in a new window by modifying any setting in the pwb.ini file? I'm currently using version 2.10.0.

Thanks
Jeff Somerfield
Lancaster PA

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

You could use the HTML type dialogs to display a web page in the denied access dialog.

[Dialogs]
UseHtmlDialogs=True

[Files]
AccessMessageFile=http://webpage...

This will display the web page in a popup window.

--Scott

jsomerfield
Participant
Participant
Posts: 19
Joined: Tue Dec 11, 2007 3:11 pm

Post by jsomerfield »

Great! Just what I needed.


Jeff

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

You could also try something like this...

Code: Select all

<title>Access Denied</title>
<script type="text/javascript">
function load()
{
	window.open('http://www.team2s.com/thankyou.html','TheNewpop','width=400,height=200,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no'); 
	history.go(-1);
}
</script>
</head>
<body onload="load()">
</body>
</html>
--Scott

Post Reply