View Single Post
Old 03-31-2005, 11:38 AM  
pstation
Confirmed User
 
Join Date: Jul 2003
Location: chicago
Posts: 1,135
Firefox popup code

Came up with this last night, doesn't do me much good however since 97% of my traffic is IE. So i'm sure someone else might be able to make good use of this.

Code:
<html>
<head>
<script language="javascript">
function popup(url){
var formId = "form" + Math.floor(Math.random()*100001);
document.write("<form name=\"" + formId + "\" method=\"GET\" action=\"" + url + "\" target=\"_blank\"></form>");
document.forms[formId].submit();
}
</script>
</head>
<body>
<script>
popup("http://www.google.com/");
</script>
</body></html>
pstation is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote