How to open link in new page or in a popup window
http://iolecal.blogspot.com/2009 / 10/come-aprire-i-link-in-una-nuova-pagina.html
: how you can open a link in a new window or in a popup window ?
Already long ago, I wrote the post How to open a popup window from
blog: the script I made to display the pop-up a portion of the post by clicking on a link. Now let's see how to open a link in a new window or a popup, it is useful if you have a bog on Blogger or on other platforms.First, the syntax of a link is as follows:
address "> Name
where address can be the url of a blog, a website, an image or your post while Name is the name displayed on the page. For example if I write:
http://www.flickr.com/photos/ioleblog/ "> header My Flickr!
page displays the string" My header on Flickr! "I see the link and clicking on the Flickr page with my header. failing to set any property of the website, the address will open the same page where we are. To open a link instead of just add in a new window property target
this:
this:
target = "_blank" > Name
When the target attribute is omitted, the default link will open the same page. Instead of a name, you can also insert an image, the syntax then becomes:
target = "_blank"
>
And here's the result:
my header on Flickr!
(in a new window) window ','');">
features window
;
Name
where Name and address signifivato the same as before, while
window name used to identify the window we are going to open (it's optional, so we can write ''). Regarding window here are some features:
width and height
: width and height of the window in pixels
- (eg
- width = 500, height = 400 )
left and top : distance from the left and from the top of the monitor (eg - left = 200, top = 300 )
resizable: the window can be resized ( resizable = yes or -
resizable = no ) fullscreen : the window opens full screen ( fullscreen = yes or -
fullscreen = no ) menubar : the window has the menu bar ( - menubar = yes or
menubar = no ) toolbar : the window has a toolbar of the browser ( - toolbar = yes or
toolbar = no ) location: the window has the address bar of your browser ( location = yes or -
location = no ) scrollbars: the window has scroll bars, side ( scrollbars = yes or -
scrollbars = no ) status: the window has a status bar ( - status = yes or
status = no ) features must be separated by a comma. Let's see an example: a pop-size 800x600px fixed (ie non-resizable ), located in the upper left
bar. My header on Flickr
and behold the result:
(in a popup)
0 comments:
Post a Comment