Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
HTML pop up code and...?
I was wondering, can you create an HTML code that A. Creates a popup window to one site and B. directs the person to another site via one click? and if so what would be the code?
Example, you click "Click here!" with a hyper link attachment, in your main browser you are sent to Google.com, a pop up creates sending you to Yahoo.com all in one click, is it possible?
and again could I please have the basic code?
3 Answers
- 9 years agoFavorite Answer
using javascript
Code:
<a href="http://google.com"/
onclick="window.open
('http://www.yahoo.com','newwin');">/
here</a>
Just put it all on the same line, a space here 'google.com" onclick' no space here 'open('http:'
For some reason, yahoo answers doesn't let it display correctly they cut it out and put . . . as shown below:
<a href="http://google.com"/ onclick="window.open('http://www.yahoo.com','newwin');">here</a%3E
- Anonymous9 years ago
I use this:
<script type="text/javascript">
// Popup window code
function newPopup(url) {
popupWindow = window.open(
url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
</script>
<a href="JavaScript:newPopup('http://www.urlhere.com');">open/ a popup window</a>
Hope this helps it just gives you more control over the pop up window that the above answer
Source(s): My HTML/java knowledge - patteeLv 45 years ago
undecided i may help straight away, yet I definitely have some code that would accomplish that: public classification student { public static GPA DoHomework(bool isLazy) { if (isLazy) { return GPA.Incomplete; } ResearchAssignmentProperly(); return GPA.PassingGrade; } } .....i'm specific you are able to verify something!