HTML - Putting A Link In An Aler Window...
Does anyone know how to put a link in an alert window?
Similar TutorialsHi all, I am wondering if anyone know how to have a link, once clicked, open a popup window WHILE also changing the page in the existing window. I know how to code them separately, but I do not know how to combine the two actions. HTML Code: <A HREF="javascript:popUp('popup.html')">link name</A> My site currently uses the above code to open popup windows. Any help would be much appreciated, David Hi, i am trying to create a link that will take the user to a new window that doesnt have a url text box, so the user wont know where he/she is going. i think it would be like a pop up window, but i am not able to do it. i tried different targets like: <a href="http://www.google.com" target="_blank">Haga Click Aqui para ver Presentacion</a> i dont want the person that clicks on it, to see the on the top of his/her window http://www.google.com ANY ADVISE WILL BE REALLY APPRECIATED... Thank you Avi Hi Guys! Me again with a noob question... On this page : http://kunstler.ca/Coordonnees.html I have a GoogleMap image that is a link... But how do I make it open in a new tab or new window? I've tried some stuff on tutorial sites but can't get it to work. Thanks for the help... Maybe some day I'll be the one helping others! Dominick http://kunstler.ca Hi Guys, I have recently changed over to DOC TYPE "HTML 4 strict" My page is validating fine apart from where i have used target="_blank" on one of my links. Is there a way around this or do i haev to go back to transitional? The page is here www.creativecogs.com/final Link to the validation error http://validator.w3.org/check?uri=ht...doctype=Inline CC_DESIGN hi there, I wonder how to open a new window from a link, set the size and remove the toolbar? In my application the user can click on a car model, and I would like to open a new window (smaller) with only the relevant info. the window should be a new one (so he can simply close it and stay in the main page). thanks for any pointers. Hello, hopefully you can help me. I have the following code, which opens a new internet browser window: <form> <p align="center"><b></b> <select id="setit" style="color: #0000FF" size="1" name="test"> <option value="">Please Select</option> <option value="http://www.nu.nl">nu</option> <option value="http://www.telegraaf.nl">telegraaf</option> <option value="http://www.google.com">Google</option></select> <input type="button" value="Go" onclick="window.open(setit.options[setit.selectedIndex].value)"> </p></form> What do I need to change so the onclick opens the link in the same internet browser window instead of opening a new one? Many thanks, Ralfie i have a site where there is an iframe. The iframe loads a page from another website which has links on it. when a person clicks on a link, it loads the next page within the iframe which is ok. This next page it load also contains links and when a person clicks one of these things, it then loads a checkout page within the iframe which is not so good at all as this page is secure, but because it exists within the iframe now, it wont show as secure to people viewing it. I would like to know how i can have the links from the next page mentioned load in a new tab or browser window so that the secure checkout page is now on its own and the https and secure padlock show to the user. Any help is greatly appreciate! I am in the process of validating my website to be in compliance with W3C's Strict guidelines, and I ran into a problem with one of my links. The link works fine in that it will open up a new browser window, but the page will not validate properly. Is this possible under Strict guidelines? If so, can someone help me out with the proper code? Here is my link as it appears in my website: <a class="death" href="http://www.graveyards.com/" target="_blank"> Reincarnate Me, Please. </a> Thanks in advance for any and all help! Take care and have a great day.... ciao, john. Hello I'm now well on my way to making my first website from html code. Please could someone give me the examples of: 1) Opening a link in current tab 2) Opening a link in new tab 3) Opening a link in a new window I want my link to open into a new window with no scrollbar or status bar and be 100% of the screen width and 66% of the screen height. Is there a way to do this? thanks in advance. Currently, I have a link that pops up. My issue is that within that popup, I have a link that I want to: - target the parent window - close on click I can get the link to either target the parent window or close on click, but I can't get it to do both. Help? Here is the case. I have an HTML page that opens a pop-up. Within the popup I need upon click to open a new window. The code is as it should be according to all references: <a href="some url" target="_blank">text</a> Everything is ok with IE6 and IE7 - a new window is being opened. What happens in Firefox is very strange - tabs are shown and the currently opened popup becomes one of the tabs and the new window opens in a new tab of the pop-up window instead in a new normal window. Did anybody encounter the same problem? Any solutions? This is my code and im trying to put <div id="background"> into a table so when the screen resolution is bigger or smaller it makes it fit like the rest of the page URL: http://mylocalmenu.co.uk/test.html HTML Code: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="Find your local takeaway menu's here"/> <meta name="keywords" content="my local menu, my local takeaway,local takeaway, local takeaways, Takeaway, Take away, takeaway, take away, food, kebab, donner, menu, Deal menu's, local menu's, local menu, local takeaway, deal, kent"/> <meta name="author" content="Ashley Sargent"/> <title>My Local Menu</title> <meta charset="iso-8859-1" /> <link href="css/style.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="advert.css" type="text/css" /> </head> <body> <div id="background"> <div class="freeadvertspace"> <script type="text/javascript"><!-- google_ad_client = "ca-pub-2350274685081572"; /* dclxvi add */ google_ad_slot = "6428215554"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> <ul class="navigation"> <div class="navi"> <div id="header-content"> <div style="position: relative"> <li><a href="index.html">Home</a></li> <li><a href="#">Locations A - H</a> <ul> <li><a href="#">Bedfordshire</a></li> <li><a href="#">Berkshire</a></li> <li><a href="#">Bristol</a></li> <li><a href="#">Buckinghamshire</a></li> <li><a href="#">Cambridgeshire</a></li> <li><a href="#">Cheshire</a></li> <li><a href="#">Cleveland</a></li> <li><a href="#">Cornwall</a></li> <li><a href="#">Cumbria</a></li> <li><a href="#">Derbyshire</a></li> <li><a href="#">Devon</a></li> <li><a href="#">Dorset</a></li> <li><a href="#">Durham</a></li> <li><a href="#">East Ridings<br> Of Yorkshire</a></li> <li><a href="#">Essex</a></li> <li><a href="#">Gloucestershire</a></li> <li><a href="#">Hampshire</a></li> <li><a href="#">Herefordshire</a></li> <li><a href="#">Hertfordshire</a></li> </ul> <li><a href="#">Locations I - S</a> <ul> <li><a href="#">Isle Of Man</a></li> <li><a href="kent.html">Kent</a></li> <li><a href="#">Lancashire</a></li> <li><a href="#">Leicestershire</a></li> <li><a href="#">Linconshire</a></li> <li><a href="#">London</a></li> <li><a href="#">Middlesex</a></li> <li><a href="#">Norfolk</a></li> <li><a href="#">North Yorkshire</a></li> <li><a href="#">Northamptonshire</a></li> <li><a href="#">Northumberland</a></li> <li><a href="#">Nottinghamshire</a></li> <li><a href="#">Oxfordshire</a></li> <li><a href="#">Rutland</a></li> <li><a href="#">Shropshire</a></li> <li><a href="#">Somerset</a></li> <li><a href="#">South Yorkshire</a></li> <li><a href="#">Staffordshire</a></li> <li><a href="#">Suffolk</a></li> </ul> <li><a href="#">Locations S - Z</a> <ul> <li><a href="#">Surrey</a></li> <li><a href="#">Sussex</a></li> <li><a href="#">Tyne And Wear</a></li> <li><a href="#">Warwickshire</a></li> <li><a href="#">West Midlands</a></li> <li><a href="#">West Yorkshire</a></li> <li><a href="#">Wiltshire</a></li> <li><a href="#">Wirral</a></li> <li><a href="#">Worcestershire</a></li> <li><a href="#">Yorkshire</a></li> </ul> </li> <li><a href="#">Services</a> <ul> <li><a href="#">N/A</a></li> <li><a href="#">N/A</a></li> <li><a href="#">N/A</a></li> <li><a href="#">N/A</a></li> <li><a href="#">N/A</a></li> </ul> </li> <li><a href="#">Contact Us</a> <ul> <li><a href="#">United Kingdom</a></li> </ul> </li> </ul> <table width="100%" height="100%" border="0" > <tr> <td height="8.5%" > TOP </td> </tr> <tr valign="top"> <td width="21.4%"> LEFT SIDEBAR </td> <td style="background-image: url('images/Main_Menu_Background.jpg'); background-position:;"> <td width="21.4%"> RIGHT SIDEBAR </td> </tr> <tr> <td height="15.5%" colspan="3">BOTTOM <center><span>© Copyright © 2011.</span> <span><a href="test.html">My Local Menu</a> all rights reserved</span></center> </td> </tr> </table> </div> </div> </div> </div> </body> </html> Where "top" is i put <div id="background"> but it dosnt work it just dissapears, btw <div id="background"> is the top part of my website "My local menu" bit, i will also add the css code for it below. HTML Code: <table width="100%" height="100%" border="0" > <tr> <td height="8.5%" > TOP </td> </tr> <tr valign="top"> <td width="21.4%"> LEFT SIDEBAR </td> CSS CODE BELOW: HTML Code: #background{ background-image:url('../images/bg-page-top-curve.jpg'); background-repeat:no-repeat; background-position:top center; I've made a layout for a sim site however I can't workout why I can't get the text to go where I want. Code: Code: <table width=95%><tr><td><center><div style="background-image:url(http://i844.photobucket.com/albums/ab3/bernie-mad/LAYOUTS/bernipngnewlayout.jpg); width:700px; height:700px;"> <br><br><br><br><br><br><br><br> <body><style type="text/css"> .container { width: 300px; height: 500px; top:100px; overflow: auto; overflow-y: hidden; border: 0px; } .section { height: 500px; overflow: auto; } </style> <table width="100px"><tr><td> <div style="width: 300px; height: 500px; border: 0px;"> <html> <br><a href="#ABOUTOWK"><img src="http://i844.photobucket.com/albums/ab3/bernie-mad/LAYOUTS/ABOUTOWK.png" border="0"></a> <br><a href="#ABOUTME"><img src="http://i844.photobucket.com/albums/ab3/bernie-mad/LAYOUTS/ABOUTME.png" border="0"></a> <br><a href="#SERVICES"><img src="http://i844.photobucket.com/albums/ab3/bernie-mad/LAYOUTS/SERVICES.png" border="0"></a> <br><a href="#MYTAGS"><img src="http://i844.photobucket.com/albums/ab3/bernie-mad/LAYOUTS/MYTAGS.png" border="0"></a> </div> </td><td> <div class="container"> <html> <head> <FONT COLOR=" #000000"> <a name="ABOUTOWK"></a> <div class="section"> <br><br><center> <u>English ****er Spaniels</u><br> OWK is currently specializing in English ****er Spaniels. OWKs are proud that we've raised the top ****ers on Mutt-z. Our ****ers are currently trained in Agility and Flyball. Although, we want the best all-rounder dogs. <p> <u>Bernese Mountain Dogs</u><br> At the moment OWK has a pair of Bernese Mountain Dogs, whose their stats are being raised. They are named after mountains from their birthplace the Swiss Mountain Range. <p> <u>English Springer Spaniels</u><br> OWK also has a pair of Springers, who will be interbred with my ECSs to create Sprockers. The most awesome mix on the planet. xD </center> </div> <br><br> <a name="ABOUTME"></a> <div class="section"> <br><br><center> Hey! :D I'm Bernie! I'm 16 years old and live in West Sussex, England. I've always lived here and have been out of Europe twice. XD I've been to Italy once and have been to Northen France a few times. <br> I have a 4 year old English ****er Spaniel whom I ADORE! She has me firmly wrapped around her little paw. n-n Ruby is the inspiration for my kennel and my love of dog training. </center> </div> <a name="SERVICES"></a> <div class="section"> <br><br><b>Manips</b> - If you want a manip done, PM me. <br> <b>Layouts </b>- If you want a layout done, PM me. Price depends on complexity. </div> <a name="MYTAGS"></a> <div class="section"> <br><br><center> <MARQUEE direction="up" width="75%"><img src=http://i74.photobucket.com/albums/i253/Fish_Outta_Water_/leno2.gif><img src=http://img210.imageshack.us/img210/3231/berniesdf8.png><img src=http://i94.photobucket.com/albums/l110/Ren_041/Sales/howlingwolfbernie.gif><img src=http://mutt-z.com/images/avatars/1451.png><img src=http://i408.photobucket.com/albums/pp169/berniemad/avi1-32.png><img src=http://i408.photobucket.com/albums/pp169/berniemad/FF/Stafftag-bernie.png> </MARQUEE> <p> My character <a href="http://i844.photobucket.com/albums/ab3/bernie-mad/Stoat.png">Stoat</a>! <p> <a href="http://i844.photobucket.com/albums/ab3/bernie-mad/Stoat.png"><img src="http://i844.photobucket.com/albums/ab3/bernie-mad/Stoat.png" width=200px length=200px></a> </center></FONT> </div> </div> </td></tr></table></style></head></body></td></tr></table> I try to put 2 Objects (probably the wrong word) in a line. I tried div, float and span. I think i just used them in the wrong Way, so may someone here can help me out? Code: <?if($CHAT_BOX$)?> <div class="boxContent" style="width: 50%;"> <div align="center">$CHAT_BOX$<?endif?> <?if($MYINF_5$)?> <div class="boxContent" style="width: 50%;">$MYINF_5$</div> </div> </div><?endif?> Thats the Code, its always Displayed $CHAT_BOX $MYINF_5$ i want it to be $CHAT_BOX $MYINF_5$ Hello, I have a small business with a website (http://www.232john.com). I created the website with Microsoft Publisher 2003. We produced a commercial about 1.5 years ago and would like to put it on the website. The problem is I don't know how, and really, if its at all possible. Also, the file may be too large, about 3 minutes long. I am thinking I would have to resize, or change the format somehow, but since I am quite new to this, I have no idea how to do that either. lol SO, anything anyone could do to help would be greatly appreciated. Thank you very much matthew I am failry new to html and I need some help. I have a link on a page. When it is clicked I want another page (which is basically made up of a small 2X3 table) to appear on the same page as the link. I am trying to do this without using frames as they are becoming depriciated. Hi i am new to HTML and have a really basic question. I am trying to teach myself HTML from scratch and came across adding a hyperlink to an image. i found this HTML below on a practice web site and undestand that the <a href="default.asp"> is where the hyperlink links to, but when i changed this to a website for example www.google.com it didn't go to the google page it just said error why is this? Also the "smiley.gif" where does this come from if i wanted to change the picture that you click on how would i do this ?? I'd be so grateful if anybody could shed some light on this for me thank you, Angela <p>No border around the image, but still a link: <a href="default.asp"> <img border="0" src="smiley.gif" alt="HTML tutorial" width="32" height="32" /> </a></p> Hi everybody! I'm doing a page and IE keeps putting more space in between table cells than I have specified. Here's the link: http://renewforest.com/test The page is basically a table in a div layer, I have made the table have a 2px cellspacing, it works great for the top 3 cells but puts a few pixels after these first 3 cells, destroying my nifty 2 pixel separation. Also, I have given some cells (the td.topfade attributed ones that is) some left and right padding, BUT NO TOP PADDING, yet Safari and Firefox both put in some padding on the top. Oddly enough, IE obeys the CSS'ed padding, huh. Any ideas? Thanks in advance! (Because this also deals with CSS I am posting this to the CSS section as well, if this is a big no no please let me know.) Hi all, I'm a beginner with XHTML, creating my very first website, so please forgive me if this should be a stupid question: I crated a table with 6 colums. Each column has a border. I'd like to set the 1st column on the left side, and the other 5 columns without a space between them on the right side. But there is still space between them. What am I doing wrong?? By the way - the 5 colums on the right side contain pictures. They are supposed to be in the middle with the same distance around to the border - doesn't work either ... the picture stucks at the top - but at least horizontally in the middle ... HTML Code: <TABLE style="cellpadding:0; cellspacing:0; width:85em;"> <TR> <TD> <DIV style="float:left; background-color:#f5f5f5; border:1px solid #CC6699; width:10em; height:5em; text-align:left;"> <B>text</B> </DIV> </TD> <TD> <DIV style="float:right; border:1px solid #CC6699; width:10em; height:5em; text-align:center; vertical-align:middle; display:table-cell;"> <IMG style="align:center; width:9em; height:4em;" src="path" alt="PICTURE"> </DIV> </TD> <TD> <DIV style="float:right; border:1px solid #CC6699; width:10em; height:5em; text-align:center; vertical-align:middle; display:table-cell;"> <IMG style="align:center; width:9em; height:4em;" src="path" alt="PICTURE"> </DIV> </TD> <TD> <DIV style="float:right; border:1px solid #CC6699; width:10em; height:5em; text-align:center; vertical-align:middle; display:table-cell;"> <IMG style="align:center; width:9em; height:4em;" src="path" alt="PICTURE"> </DIV> </TD> <TD> <DIV style="float:right; border:1px solid #CC6699; width:10em; height:5em; text-align:center; vertical-align:middle; display:table-cell;"> <IMG style="align:center; width:9em; height:4em;" src="path" alt="PICTURE"> </DIV> </TD> <TD> <DIV style="float:right; border:1px solid #CC6699; width:10em; height:5em; text-align:center; vertical-align:middle; display:table-cell;"> <IMG style="align:center; width:9em; height:4em;" src="path" alt="PICTURE"> </DIV> </TD> <TD> <DIV style="float:right; border:1px solid #CC6699; width:10em; height:5em; text-align:center; vertical-align:middle; display:table-cell;"> <IMG style="align:center; width:9em; height:4em;" src="path" alt="FLAG OF CHILE"> </DIV> </TD> </TR> </TABLE> |