PDA

View Full Version : Browser Window


atomize
05-25-2012, 05:20 AM
I am using Dreamweaver 8.

In webpage A, I created a hyperlink to webpage B. I then added a behaviour ('open browser window' to open same webpage A) to the hyperlink.

When I preview the page and click on the hyperlink, 2 webpages B, open up on top of the webpage A.

I just want open 1 webpage B(which I created using behaviour) to open.

How do I do that?

Thanks.

edbr
05-25-2012, 05:23 AM
In webpage A, I created a hyperlink to webpage B. I then added a behaviour ('open browser window' to open same webpage A) to the hyperlink.
the path is to page A or B i cant understand what you have done. post the javascript code

atomize
05-25-2012, 05:24 AM
the path is to page A or B i cant understand what you have done. post the javascript code

The path is to B.

<a href="ClassicalBallet.html" target="_blank" onclick="MM_openBrWindow('ClassicalBallet.html','ClassicalB allet','width=550,height=580')">here</a>

edbr
05-25-2012, 05:42 AM
you mean it opens in a new window?

atomize
05-30-2012, 05:31 PM
Yes, 2 new windows of webpage B are opened when I click on the hyperlink.

edbr
05-31-2012, 02:39 AM
post all your code for that page

domedia
05-31-2012, 01:58 PM
You're opening a regular link, and a javascript link = 2 links

atomize
06-03-2012, 06:29 AM
post all your code for that page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>ClassicalBallet</title>
<style type="text/css">
<!--
.style1 {
font-size: xx-large;
font-weight: bold;
}
body {
background-color: #66FF00;
}
.style2 {font-size: medium}
-->
</style>
</head>
<body>
<div align="center" class="style1">Classical Ballet </div>
<div align="center">
<p><img src="TEMPLATES/IMAGES/characterdance.jpg" width="148" height="118" alt="CharacterDance" /><img src="TEMPLATES/IMAGES/Ballet3.jpg" width="148" height="118" alt="Ballet3" /><img src="TEMPLATES/IMAGES/Ballet2.jpg" width="148" height="118" alt="Ballet2" /></p>
<p class="style2">Students learn floor exercises, classical dance, free movement dance and character dance. Students will be prepared to take the Royal Acedemy of Dance Examination.</p>
<p>
<embed src="TEMPLATES/VIDEO/CharDance.wmv" width="405" height="283"></embed>
</p>
</div>
</body>
</html>


1 more thing, how do insert a hit counter at the bottom of a webpage? Can I be independent of another website to help me keep track(record) of the counter?

FYI, I am using 'macromedia dreamweaver' to create my webpages.

Thanks.

edbr
06-04-2012, 04:12 AM
dont see the link on that popabe but try this instead of the link you posted before
<a href="#" target="_blank" onclick="MM_openBrWindow('ClassicalBallet.html','C lassicalBallet','width=550,height=580')">here</a>

hit counters are a waste of time better to track using web stats or google analytics

domedia
06-04-2012, 01:42 PM
<a href="#" target="_blank" This will still open a regular window.

If no extra window is needed, then don't use <a>