Hi,
I have used the search button but can't seem to find an answer to my problem.
I'm trying to prepare a simple submit for direct linking on LI. I'm going to use a bait and switch to get around exit popups on offers.
I need the popup to display the iframed offer, although when a user clicks within the popup I want the page to resize to full window.
Please can someone tell me where I'm going wrong, as it just doesn't seem to work.
Here is what I have so far:
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>Offer Title</title>
</head>
<body>
<iframe
src="http://offer.com"
name="myInlineFrame" target="_self" onclick="maxWindow()"
frameborder="0" height="600" scrolling="auto"
width="780"></iframe>
<br>
<script language="JavaScript">
function maxWindow() {
window.moveTo(0, 0);
if (document.all) {
top.window.resizeTo(screen.availWidth, screen.availHeight);
}
else if (document.layers || document.getElementById) {
if (top.window.outerHeight < screen.availHeight ||
top.window.outerWidth < screen.availWidth) {
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
}
</script>
</body>
</html>
to maximize window after clicking
Should we do this? I think LI doesn't allow to do this.