HTML problem- opening a new window
HTML problem- opening a new window
Mar 6 2009, 04:37 PM
Joined: 6-March 09
Member No.: 7,996
Hi all. I am new to HTML, but I love it and I basically worship Dreamweaver. Right now, I am best at doing everything in design mode, easy I know. I am trying to do this site for a friend and he needs some specific coding to where when someone clicks on the link, a new window opens with no problem. Now, let me say this. He uses a PC and IE as a browser. When I open the page, I don't get the error because I use Safari 4. I also tried Firefox on my husband's PC to open it, and didn't get the error message that I am trying to correct. In essence, my friend wants to correct this problem with some kind of html code for people trying to view his page in Internet Explorer, since the problem doesn't occur in other browsers.
Here is the problem:
It is easier to see than to describe, but I will try, and I will also include links that have the html for both ways.
The problem: This man needs a page with links to where when someone clicks on the hot spot, a new small window opens with a tour in it, and the original page is still in the background. I figured this out, you just use "blank" in the coding for the link.
Now, when this new link is opened, in IE, a message pops up that says something like "The browser is trying to close this window. Do you want to close it? Yes or no"
He doesn't want this message to come up at all. It's an extra step, which people will not know whether to click yes or no on.
Here are examples of the correct code he needs and the incorrect: If you open Internet Explorer, and click on any of the links, you can see what I am talking about.
The first one (Edgecomb) is the one that will show the error in IE. This is the one we are trying to correct.
The next two work correctly, as far as the links opening with no error.
I have tried copying the code that I thought was doing the trick from the correct one to the wrong one, without success. I am not sure what code needs to be put in the Edgecombe html from the other two to make it work properly, like he wants.
Can someone view the page source of these and tell me what code I need in the Edgecombe file to avoid the "Page is trying to close: Close it- Yes or No" error in Internet Explorer.
I would greatly appreciate it because I am lost!! Thanks!!!
This post has been edited by Shauhncy: Mar 6 2009, 04:39 PM
Mar 6 2009, 11:08 PM
Joined: 23-December 08
Member No.: 7,394
Some issues I have found with the mapping on the (Edgcombe) site, would suggest that you could visit youtube or google and do a search on mapping, youtube have some easy to follow tutorials.
<area shape="poly" coords="330,117,345,131,378,94,363,82,329,117" href="#" target="_parent">
The href="#" should have an address their, e.g href="yourpagename.html", having the # sign basically sends the page to itself.
The above code is broken down as such:
shape = poly, means that the shape of the mapped image has may sides
coords = xx,xx,....., means that each number represents to pixel place on the mapped image
href = #, that is what web page you want to browse to when the mapped image is clicked
target= _parent, opens the window of the parent browser.... ie it self if not a frameset
This post has been edited by geoffmerritt: Mar 6 2009, 11:09 PM
Mar 7 2009, 11:40 AM
Don't like donuts. Don't do MySpace.
Group: WDG Moderators
Joined: 9-August 06
Member No.: 6
I do get a JS error though.
|Lo-Fi Version||Time is now: 1st April 2015 - 09:27 AM|