|
-
May 1st, 2002, 12:53 PM
#1
Thread Starter
Lively Member
Open new window BUT......
Hi.
I need to know how I open a new window in a browser BUT if I already have opend it I want to show my info in the window..
Example:
I got a shopingcart and I want to show a helpwindow.. If the user clicks on help a new window shall open.. If he clicks on another help then the already opend helpwindow shall show the new help..
Best regards Johan Ryberg
-
May 1st, 2002, 03:43 PM
#2
Stuck in the 80s
Code:
window.open('page.html','name', etc...
For each of your help links, specify the same window name. That way, when the link is clicked, it will load in the already opened window that was given that name.
So make sure the 'name' properties aren't unique.
-
May 1st, 2002, 04:11 PM
#3
Addicted Member
One thing to watch out for is the already-opened window will indeed get the new contents, but it will not bump up to the foreground. Anyone know how to make a window pop forward?
cudabean
-
May 1st, 2002, 11:51 PM
#4
Thread Starter
Lively Member
may I got a functionally codeexample?
Best regards Johan Ryberg
-
May 2nd, 2002, 03:43 AM
#5
Hyperactive Member
here's an example 
Code:
<html>
<head>
</head>
<script>
function helpPopUp(help_page)
{
var help_window = window.open(help_page,'hintswindow','width=300,height=300,top=300,left=300');
help_window.focus();
}
</script>
<body>
<a href="#" onclick="helpPopUp('http://www.vbforums.com')">help 1</a><br>
<a href="#" onclick="helpPopUp('http://www.vbsquare.com')">help 2</a><br>
</body>
</html>
-
May 2nd, 2002, 04:33 AM
#6
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|