![]() |
|
|
grep unix.com with google
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Our Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Ah cool! Thanks Jim.
Could you elaborate a little bit? I would create a JavaScript function (with two GET requests?) linked to the anchor and triggered by an onClick event? That's all I could guess as to how I would use JavaScript to achieve this. Probably a silly approach. I had a look here too Web service - Wikipedia, the free encyclopedia. But that just gave me an overview of the concept. Thanks again! |
|
||||
|
So here's the solution I came up with, using JavaScript Code:
<html>
<head>
<title>Link</title>
<script type="text/javascript">
<!-- hide
function linkout(url){
window.open('http://www.yahoo.com','newwindow');
setTimeout("window.open('"+url+"','newwindow')",5000);
}
// done hiding -->
</script>
</head>
<body>
<input type="button" value="Go" onclick="linkout('http://www.google.com')"/>
</body>
</html>
When a user clicks the Go button, a new window will open to Yahoo. After 5 seconds the Google search engine will open up in the same window ('newwindow'), which was exactly what I needed. Last edited by vbe; 1 Week Ago at 02:03 PM.. Reason: added code tags |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| anchor, hyperlink, web |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Difference between hard link and soft link | kamakshi s | UNIX for Dummies Questions & Answers | 2 | 06-26-2008 09:05 AM |
| need some info about symbolic link and hard link | detective linux | UNIX for Dummies Questions & Answers | 2 | 01-08-2008 07:36 AM |
| Need to log http requests | fundidor | UNIX for Dummies Questions & Answers | 3 | 08-08-2006 09:34 AM |
| Difference between hard link and soft link in unix | RAJACHOKALINGAM | UNIX for Dummies Questions & Answers | 2 | 08-01-2006 05:10 AM |
| Differences between hard link and soft link | penguin-friend | UNIX for Advanced & Expert Users | 3 | 03-08-2002 03:49 PM |