Print Page | Close Window

javascript

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=20403
Printed Date: 29 March 2026 at 8:42am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: javascript
Posted By: urko
Subject: javascript
Date Posted: 22 June 2006 at 8:51pm
Not sure if i posted in right forum, but as I dont have problem with forum I decided to post it here.

This is part of javascript from forum.
I have made pm_check_inc1.asp which is displayed in iframe.

I have no idea how and where to write target=_top so that page would not open in iframe on my site, so that users can see if they're logged in or not.

I have search on net and found soem tips but I just cant get it to work.
(target.window.location...etc..)

Response.Write("<script language=""JavaScript""><!-- " & _
            vbCrLf & vbCrLf & "//Display pop for new private message" & _
            vbCrLf & "checkPrivateMsg = confirm('" & strTxtYouHave & " " & intNoOfPms & " " & strTxtNewPMsClickToGoNowToPM & "')" & _
            vbCrLf & "if (checkPrivateMsg == true) {" & _
            vbCrLf & "    window.location='/mysite/forum/pm_inbox.asp" & strQsSID1 & "'" & _
            vbCrLf & "}" & _
            vbCrLf & "// --></script>")


thanks,


-------------
Urko



Replies:
Posted By: Scotty32
Date Posted: 30 June 2006 at 10:50pm
to start with you've posted in the wrong forum, but you knew that

anyway, i think the answer is:

vbCrLf & "    parent.location='/mysite/forum/pm_inbox.asp" & strQsSID1 & "'" & _
though i cant remember correctly.

check on http://www.javascriptkit.com - www.javascriptkit.com


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net