volking
asked on
re-use same child window in multiple hyperlinks
I'm writing a HELP system. I want hyperlinks on my website to open individual help pages. But, I do NOT want to "Open New Window" and "Open New Window" and "Open New Window" ... arrrrgh I personally dislike all those stupid windows!
How do I tell a dozen different hyperlinks to REUSE the exact same "child" window which may (or may not) have already been opened by an earlier hyperlink?
so I get one "new" window used over-and-over again.
How do I tell a dozen different hyperlinks to REUSE the exact same "child" window which may (or may not) have already been opened by an earlier hyperlink?
so I get one "new" window used over-and-over again.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
So these lines would open different help pages but all into the exact SAME browser window? Right?
<a href="login.htm" target="helpWindow">AboutL ogin</a>
<a href="signup.aspx" target="helpWindow">Signup Help</a>
<a href="contact.html" target="helpWindow">TalkBa ck?</a>
So the key is ..... target="WhatEverName"
<a href="login.htm" target="helpWindow">AboutL
<a href="signup.aspx" target="helpWindow">Signup
<a href="contact.html" target="helpWindow">TalkBa
So the key is ..... target="WhatEverName"
ASKER
The javascript option is good too, but can bookmarks be passed in the urls?
<a href="#" onclick="setWindow('Signup Help.htm#b ookmarkAAA ');">Help< /a>
<a href="#" onclick="setWindow('Signup Help.htm#b ookmarkBBB ');">Help< /a>
<a href="#" onclick="setWindow('Signup Help.htm#b ookmarkCCC ');">Help< /a>
<a href="#" onclick="setWindow('Signup
<a href="#" onclick="setWindow('Signup
<a href="#" onclick="setWindow('Signup
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
glad i could help
thanks for the points
thanks for the points
try adding this to the second option
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script language="JavaScript" type="text/javascript">
var newWin='';
function setWindow(url){
if(!newWin || newWin.closed){
newWin=window.open(url,'',
}
newWin.focus();
}
</script>
</head>
<body>
<a href="#" onclick="setWindow('somePa
</body>
</html>