Reply to Re: Link in pop-up

Your name:

Reply:


Posted by jim on 05/06/07 18:39

I think this is what you're looking for:
==============================================================
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>
</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script type="text/javascript" >
function doPop(){
// type in your button link href here:
var link = "http://www.google.com";
var new_win =
window.open('','newpop','width=650,height=200,left=60%,top=200,scrollbars=yes,status=yes,resizeable=yes' );
var text = "<html><body>";
text +="<button onClick=opener.location.href='" + link + "'>Link to
Google</button>";
text += "<button style='position:absolute; right:0px; bottom:0px;'
onClick='window.close()'>Close Window</button>";
new_win.document.write(text);
new_win.focus();
}
</script>
</head>
<body >
<button onClick="doPop()">Pop up</button>
</body>
</html>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация