|
|
Bnbrown's Questions: Html, Css, Jsc, Ftp Etc. | ||
Discussion by bnbrown with 23 Replies.
Last Update: May 9, 2011, 4:17 am (View Latest) | Page 1 of 2 pages. | ||
1. question:
How can a customize the target="_blank" stuff?
Fri Nov 4, 2005 Reply New Discussion
QUOTE (bnbrown)
1. question:How can a customize the target="_blank" stuff?
See, TARGET controls where the new document is opened up when the user clicks on a link in your site. Usually, clicking on a link loads the new page in the same window where you clicked the link. With TARGET, you can have the new page open up in a completely new window/tab (depending on browser), or in case of frames, nested in another frame.
The usual format of using TARGET is as follows:
CODE
<A HREF="newpage.html" TARGET="_self">New Page</A>
i.e., you use it in conjunction with a A HREF or link tag to tell the browser where to open the link.
TARGET can take four predefined values as parameter, and open you new page accordingly. The parameters are:
- "_blank"
- "_parent"
- "_self"
- "_top"
Case 1
=====
TARGET = "_blank"
"_blank" opens the link in a brand new window.
Case 2
=====
TARGET = "_parent"
"_parent" is used when you have a frameset file is nested inside another frameset file. Clicking the link would cause the new frameset to load in the parent frameset, i.e. where the current frameset was nested in.
Case 3
=====
TARGET = "_self"
"_self" opens the new page in the same window - as is the case with most pages. "_self" works all the same as in the case when you omit the TARGET completely.
Case 4
=====
TARGET = "_top"
"_top" loads the new page in the topmost frame... Once again, this is useful in case of frames. If you want a link inside a frame to open up a page wiping out all the frames on the screen and starting as the topmost parent frame, you use this parameter.
Have fun .. and try to be a little more specific in your topic titles - so that it reflects the nature of your post's content a little more clearly.
Regards,
m^e
P.S. Google around and you'll find plenty of live demonstrations of how each parameter reacts to clicks.
- DEAD-ON WRONG TRACK, lol...
Fri Nov 4, 2005 Reply New Discussion
QUOTE (bnbrown)
How can a customize the target="_blank" stuff?so this is a specific html question, so I think you want to get a blank window with customized environment, like no "File Edit View..." menus, no icons, nonresizable, etc...
so first answer is that you could do it in java with this code
CODE
<script TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=500,scrollbars=yes');
return false;
}
//-->
</SCRIPT>
The java above goes in head
<a href="http://www.widgets.com/" onClick="return popup(this, 'notes')">
and this will help you alot http://www.echoecho.com/toolpopupgenerator.htm - it's a popup tool generator, so if you don't know javascript this will help you to customize your "_blank" windows
Fri Nov 4, 2005 Reply New Discussion
I hope it will work. I'll try it.
Fri Nov 4, 2005 Reply New Discussion
Fri Nov 4, 2005 Reply New Discussion
Fri Nov 4, 2005 Reply New Discussion
finaldesign, you should distinguish Java and Javascript
The reason you got two windows when you used target="_blank" and window.open is that you set up two events at the same time when someone clicked.
Another important thing is that a lot of users (especially me
Oh and don't pop up windows "onload" ("onmouseover" "onmouseout" "onunload" and so on) because users hate it and a lots of browsers/extensions block it.
Fri Nov 4, 2005 Reply New Discussion
I have to agree with Ruben. Robbing features of a window is pointless, say for example, a person has a link to their site and they only want the border to be shown, they will disable the menu, etc. This is pointless in security and functionality. The first of the two pointless notes, security, if you want the window to open fully, it is very simple. Secondly, the functionality or usability is also depreciated, as you don't have the controls to change certain things or reload (unless you know your keyboard shortcuts
Fri Nov 4, 2005 Reply New Discussion
QUOTE
Oh and don't pop up windows "onload" ("onmouseover" "onmouseout" "onunload" and so on) because users hate it and a lots of browsers/extensions block it.I don't use such.
But why problem is the unsizable window if it is user-friendly. How to enlarge an image then, anyway? With sizable window it is very eye-unfriendly.
Fri Nov 4, 2005 Reply New Discussion
2. question: How is that I use an alt tag for my imgs and IE does show off the text whereas Firefox does not...?
Tue Nov 8, 2005 Reply New Discussion
Sun Nov 13, 2005 Reply New Discussion
The answer to your question is: The Internet Explorer is behaving wrong by showing the Alt-Text when mouse-overing the image. If you want the same behaviour (showing a description) for both, then define a "title" attribute for the images. It will override the "alt" display in IE.
Sun Nov 13, 2005 Reply New Discussion
Sun Nov 13, 2005 Reply New Discussion
Mon Nov 14, 2005 Reply New Discussion
Mon Nov 14, 2005 Reply New Discussion
Question About Embedding Flash Object Header flash (2)
|
(10) How Do I Create A Movie Shot Of My Desktop ? of my desktop?????
|
Index




