| | |
Pop-up window overlapping issues
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hello,
Is there a way to change the target name of a pop-up window?
If you check out my site you will see the issue I am having. What happens is when you click on "Open Chat Window" and then click on "Detach Jukebox" they populate in the same pop-up. So you can't have both windows open at the same time.
If I could change the name of the pop-up's target to "_chat" or "_jukebox" instead of "_blank" perhaps I could have both pop-ups open.
The site is http://www.stateofhumanity.org - check it out and you will see the issue.
Let me know if you know what I can do about this issue.
Is there a way to change the target name of a pop-up window?
If you check out my site you will see the issue I am having. What happens is when you click on "Open Chat Window" and then click on "Detach Jukebox" they populate in the same pop-up. So you can't have both windows open at the same time.
If I could change the name of the pop-up's target to "_chat" or "_jukebox" instead of "_blank" perhaps I could have both pop-ups open.
The site is http://www.stateofhumanity.org - check it out and you will see the issue.
Let me know if you know what I can do about this issue.
try this
javascript
html
[html]
<a href="javascript:popUp('http://www.stateofhumanity.org/chatwindow.html')">popup window</a>
[/html]
p.s. no need to add window names...and put the script in the head section.
javascript
HTML and CSS Syntax (Toggle Plain Text)
<script type="text/javascript"> function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,left=125,top=100,width=500,height=500');"); } </script>
html
[html]
<a href="javascript:popUp('http://www.stateofhumanity.org/chatwindow.html')">popup window</a>
[/html]
p.s. no need to add window names...and put the script in the head section.
Last edited by FC Jamison; Sep 18th, 2006 at 10:56 pm.
•
•
•
•
try this
javascript
HTML and CSS Syntax (Toggle Plain Text)
<script type="text/javascript"> function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,left=125,top=100,width=500,height=500');"); } </script>
html
[html]
<a href="javascript:popUp('http://www.stateofhumanity.org/chatwindow.html')">popup window</a>
[/html]
p.s. no need to add window names...and put the script in the head section.
But I will continue to work at it.:cheesy:
Odin
Here is a test page.
[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script type="text/javascript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,left=125,top=100,width=150,height=150');");
}
</script>
</head>
<body>
<p><a href="javascript:popUp('http://www.stateofhumanity.org/chatwindow.html')">popup window</a>
</body>
</html>
[/html]
[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script type="text/javascript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,left=125,top=100,width=150,height=150');");
}
</script>
</head>
<body>
<p><a href="javascript:popUp('http://www.stateofhumanity.org/chatwindow.html')">popup window</a>
</body>
</html>
[/html]
Last edited by FC Jamison; Sep 18th, 2006 at 11:05 pm.
![]() |
Other Threads in the HTML and CSS Forum
- Previous Thread: Comments page
- Next Thread: Please help.
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash font fonts form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl





