1.11M Members

How do I make a website link not a pop up?

 
0
 

Can someone tell me what I am doing wrong? I have tried all the coding and it acts as a pop up when you click enter site.

Here is the coding for the form:

<form method="GET" action="http://www.rotatemarketing.com/home.html" target="_parent">



	<div>
		<input type="hidden" name="acctid" id="acctid" value="qgdtcj4r6lpmrn1i" />
		<input type="hidden" name="formid" id="formid" value="704007" />
		<input type="hidden" name="" id="" value="name,email" />
	</div>
	`<p>
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size="3">First Name:</font> <input type="text" name="first" /><br /><br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size="3">Last Name:</font> <input type="text" name="Last" /><br /><br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size="3">Email:</font> <input type="text" name="email" /><br /><br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size="3">Phone:</font> <input type="text" name="number" /><br /><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="enter site">
		
</form>
<br><center><font face="Arial, Helvetica" size="1"></font></center>
<!-- End Form -->

Here is the coding for the rotating web page:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 
      "http://www.w3.org/TR/html4/loose.dtd">
  
      <html lang="en">
  
      <head>
   
      <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
   
      <title>Rotate Marketing</title>
  
      
  
      <script src="cookies.js" type="text/javascript">function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}
</script>
 
      <script type="text/javascript">
 
      <!--
 
      var Win;
  
      var page_index = 0;
  
      var page = new Array();
  
      page[ page.length ] = "http://www.homebiz.usaloe.com";
  
      page[ page.length ] = "http://www.makethatmoney.usaloe.com";
  
 
      var next_page = function(){

       
 
      //page_index = (( page_index === 8 ) ? 0 : page_index );
  
      page_index=++page_index % page.length;

      if ( typeof Win !== "undefined" ) {

       
  
      Win.location.href = page[ page_index ];
 
      createCookie("lastPage",page_index,30);
 
      }

      };

      window.onload = function() {

      page_index=readCookie("lastPage");
  
      if(null===page_index) 
 
      {
 
      page_index=0;

      }
  
      else
 
      {
 
      page_index=++page_index % page.length;
  
      }
  
      createCookie("lastPage",page_index,30);
  
      Win = window.open( page[ page_index ], 'Win', 'resize=yes,toolbar=yes, status=yes,scrollbars=yes, screenX=0,screenY=0, width=1000, height=666' );
  
      timer = setInterval( "next_page()", 10000000 );
 
      };
 
      // -->
  
      </script>
  
      </head>
 
      <body>
 
      </body>
  
      </html>
 
0
 

Its just a guess, but perhaps your forms target of "_parent" is causing this?

 
0
 

Try removing the target="_parent" in the <form tag.

 
0
 

I am not sure why you are specifying a target attribute any way, is this in a frame?
I agree with the other replies, remove the target attribute of the form tag.

 
0
 
Win = window.open( page[ page_index ], 'Win', 'resize=yes,toolbar=yes, status=yes,scrollbars=yes, screenX=0,screenY=0, width=1000, height=666' );

says new window,
fix the javascript window.location() to keep the history
or window.location.replace() to void the history

is the current window

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article