Print Page | Close Window

HTML help

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=847
Printed Date: 29 March 2026 at 4:21am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: HTML help
Posted By: Gullanian
Subject: HTML help
Date Posted: 08 March 2003 at 8:16pm

On my site I have a link which makes a new popup window appear.  From that popup window there are many links.  What I want to know is how you can make the link load in the window which created the popup.

Thanks for any help, im a bit stuck!




Replies:
Posted By: Gullanian
Date Posted: 09 March 2003 at 2:09pm

If anyone could assist me here, I would be appreciative!

Thanks,



Posted By: WebWiz-Bruce
Date Posted: 09 March 2003 at 2:22pm

If you look at the code for this forum it does this very thing from the profile pop up window and other places for things like opening the email messanger, or to PM a user. The JavaScript function I wrote to do this is:-

<script language="JavaScript">

//Function to open email messenger
function openInMainWin(winLocation){
 window.opener.location.href = winLocation
 window.opener.focus();
 window.close();
}
</script>

I then reference it form a link using the following code:-

javascript:openInMainWin('email_messenger.asp')



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Gullanian
Date Posted: 09 March 2003 at 3:12pm

Fantastic, thank you!




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